I am trying to copy a lot of files to an rclone remote, and I have had success with using files-from in the past, but for some reason it isn't working for me now. I am running the following command:
When I execute rclone ls after running this, the files appear not to have been copied into the remote, but I get no errors. Is there a mistake I have made with using this command?
rclone copy --files-from "D:\add_gcrypt\textfile2.txt" "D:\add_gcrypt\from" "GSuite_Crypt:/Dropbox/" -vv
2020/03/20 13:40:03 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "copy" "--files-from" "D:\\add_gcrypt\\textfile2.txt" "D:\\add_gcrypt\\from" "GSuite_Crypt:/Dropbox/" "-vv"]
2020/03/20 13:40:03 DEBUG : Using config file from "C:\\Users\\Callum Stewart\\.config\\rclone\\rclone.conf"
2020/03/20 13:40:05 DEBUG : p3.txt: Excluded
2020/03/20 13:40:05 DEBUG : p1.txt: Excluded
2020/03/20 13:40:05 DEBUG : p2.txt: Excluded
2020/03/20 13:40:06 DEBUG : Zipped Archives: Excluded
2020/03/20 13:40:06 INFO : Encrypted drive 'GSuite_Crypt:/Dropbox/': Waiting for checks to finish
2020/03/20 13:40:06 INFO : Encrypted drive 'GSuite_Crypt:/Dropbox/': Waiting for transfers to finish
2020/03/20 13:40:06 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 0s
2020/03/20 13:40:06 DEBUG : 7 go routines active
2020/03/20 13:40:06 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "copy" "--files-from" "D:\\add_gcrypt\\textfile2.txt" "D:\\add_gcrypt\\from" "GSuite_Crypt:/Dropbox/" "-vv"]
I have deleted some of the debug information because it isn't relevant, and reveals things I'd rather not. But the things that I deleted are folders that have the form date time DEBUG : folder: Excluded
all filters are relative to the root of the source, not the abolute path of the source file.
your root is D:/add_gcrypt
so in the first command, change the textfile to
Ah, I've been undone by relative file paths! I always seem to get mixed up with those! So if I include only the filenames in the textfile.txt, then that will look for the files in the path D:\add_gcrypt\from\, meaning that it's the same as writing the full path in the textfile.txt, and having the source directory as just D:, am I right?
files are relative to your root. Im not a windows guy but remove the d:\folder\ from the files in your text file so they match your root you've specified.
the paths, if any, on the include file, are relative to the path of the source.
the source path is D:\add_gcrypt\from\
so having p1.txt in the include file is treated as D:\add_gcrypt\from\ + p1.txt
which is D:\add_gcrypt\from\p1.txt