RyanH
October 30, 2020, 11:43pm
1
#### What is the problem you are having with rclone?
When attempting to copy a list of files from a text file, it returns 2020/10/31 12:33:40 INFO : There was nothing to transfer
#### What is your rclone version (output from rclone version
)
rclone v1.53.1
#### Which OS you are using and how many bits (eg Windows 7, 64 bit)
Microsoft Windows 10 Professional version 1909 Build 18636.1110
#### Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone.exe --transfers=2 --checkers=2 --stats 10s --progress --bwlimit 8M --checksum --log-file=rclone_list.txt --log-level DEBUG --files-from c:\temp\list.txt c:\temp\media OneDrive:/media
The files are stored in subdirectories in a common directory e.g. media
. The file path to the file that is to be copied across would be for instance c:\temp\media\subdir1\filename.txt
The list in the file list.txt
is subdir1\filename.txt
.
The aim is to copy these files in the list and populate it in the same path in the remot4e e.g. OneDrive:/media/subdir1/filename.txt
What is missing from either the command or list?
asdffdsa
(jojothehumanmonkey)
October 30, 2020, 11:58pm
2
can you post the debug log and the list.txt.
RyanH
October 31, 2020, 12:10am
3
Debug log
2020/10/31 12:32:43 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone.exe" "--transfers=2" "--checkers=2" "--stats" "10s" "--progress" "--bwlimit" "8M" "--checksum" "--log-file=rclone_list.txt" "--log-level" "DEBUG" "--dry-run" "copy" "--files-from" "c:\\temp\\list.txt" "OneDrive:/media"]
2020/10/31 12:33:33 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone.exe" "--transfers=2" "--checkers=2" "--stats" "10s" "--progress" "--bwlimit" "8M" "--checksum" "--log-file=rclone_list.txt" "--log-level" "DEBUG" "copy" "--files-from" "c:\\temp\\list.txt" "c:\\temp\\media" "OneDrive:/media"]
2020/10/31 12:33:33 DEBUG : Creating backend with remote "c:\\temp\\media"
2020/10/31 12:33:39 DEBUG : Using config file from "C:\\Users\\ryanhallinger\\.config\\rclone\\rclone.conf"
2020/10/31 12:33:39 INFO : Starting bandwidth limiter at 8MBytes/s
2020/10/31 12:33:39 DEBUG : fs cache: renaming cache item "c:\\temp\\media" to be canonical "//?/c:/temp/media"
2020/10/31 12:33:39 DEBUG : Creating backend with remote "OneDrive:/media"
2020/10/31 12:33:40 DEBUG : fs cache: renaming cache item "OneDrive:/media" to be canonical "OneDrive:media"
2020/10/31 12:33:40 DEBUG : subdir1: Excluded
2020/10/31 12:33:40 DEBUG : subdir2: Excluded
2020/10/31 12:33:40 DEBUG : One drive root 'media': Waiting for checks to finish
2020/10/31 12:33:40 DEBUG : One drive root 'media: Waiting for transfers to finish
2020/10/31 12:33:40 INFO : There was nothing to transfer
2020/10/31 12:33:40 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 7.5s
2020/10/31 12:33:40 DEBUG : 5 go routines active```
RyanH
October 31, 2020, 12:11am
4
List of files
c:\temp\media\subdir1\file1.txt
c:\temp\media\subdir2\file2.txt
The list is saved as
subdir1\file1.txt
subdir2\file2.txt
asdffdsa
(jojothehumanmonkey)
October 31, 2020, 12:19am
5
kind of a strange looking log file?
can you delete the log file and run the command again, then post the log file
RyanH
October 31, 2020, 12:23am
6
That's verbatim from the log file. Yes, I did that several times and it produces the same result.
asdffdsa
(jojothehumanmonkey)
October 31, 2020, 12:24am
7
as per the documentation,
" Important Note that you must use /
in patterns and not \
even if running on Windows."
so try subdir1/file1.txt
RyanH
October 31, 2020, 12:28am
8
I deleted the file and ran the command again.
2020/10/31 13:25:28 DEBUG : Creating backend with remote "c:\\temp\\media"
2020/10/31 13:25:34 DEBUG : Using config file from "C:\\Users\\ryanhallinger\\.config\\rclone\\rclone.conf"
2020/10/31 13:25:34 INFO : Starting bandwidth limiter at 8MBytes/s
2020/10/31 13:25:34 DEBUG : fs cache: renaming cache item "c:\\temp\\media" to be canonical "//?/c:/temp/media"
2020/10/31 13:25:34 DEBUG : Creating backend with remote "OneDrive:/media"
2020/10/31 13:25:34 DEBUG : One drive root 'media': Token expired but no uploads in progress - doing nothing
2020/10/31 13:25:34 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2020/10/31 13:25:35 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2020/10/31 13:25:35 DEBUG : OneDrive: Saved new token in config file
2020/10/31 13:25:36 DEBUG : fs cache: renaming cache item "OneDrive:/media" to be canonical "OneDrive:media"
2020/10/31 13:25:36 DEBUG : subdir1: Excluded
2020/10/31 13:25:36 DEBUG : subdir2: Excluded
2020/10/31 13:25:36 DEBUG : One drive root 'media': Waiting for checks to finish
2020/10/31 13:25:36 DEBUG : One drive root 'media': Waiting for transfers to finish
2020/10/31 13:25:36 INFO : There was nothing to transfer
2020/10/31 13:25:36 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 8.7s
2020/10/31 13:25:36 DEBUG : 7 go routines active```
asdffdsa
(jojothehumanmonkey)
October 31, 2020, 12:29am
9
did you see my last post?
RyanH
October 31, 2020, 12:33am
10
Thanks @asdffdsa . It seems that all the paths had a backslash i.e. \
instead of a forward slash /
. When these are updated, it resolves the issue. Good spotting
asdffdsa
(jojothehumanmonkey)
October 31, 2020, 12:35am
11
yeah, we both see the world thru a Windows centric lens but alas the world is changing...
1 Like
system
(system)
Closed
November 3, 2020, 12:35am
12
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.