Can't get --files-from to Work as Expected


#1

Trying to use the --files-from flag to transfer only a list of recently modified files but I can’t for the life of me get it to do anything.

Files are stored on a local drive under a main folder like so:

Z:\FOLDER\SUB1
Z:\FOLDER\SUB2
Z:\FOLDER\SUB3
...

And in the root of a cloud folder like so:

SUB1
SUB2
SUB3

I’ve created a TXT file with items per the following:

SUB1\SUBSUB1\FILE1.EXT
SUB2\SUBSUB2\FILE2.EXT
SUB3\SUBSUB2\FILE3.EXT
...

Trying to use the following RCLONE command results in nothing being copied:

rclone.exe --files-from FILTERLIST.txt -v sync Z:\FOLDER REMOTE:

And I get the following output:

C:\SCRATCH\RCLONE>rclone --files-from FILTERLIST.txt -vv sync Z:\FOLDER REMOTE:
2018/02/13 11:00:21 DEBUG : rclone: Version "v1.37" starting with parameters ["rclone.exe" "--files-from" "FILTERLIST.txt" "-vv" "sync" "Z:\\FOLDER" "REMOTE:"]
2018/02/13 11:00:21 INFO  : Google drive root '': Modify window is 1ms
2018/02/13 11:00:21 DEBUG : FOLDER1: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : FOLDER2: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : FOLDER3: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : $TMPFILE.txt: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : FOLDER2: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : FOLDER1: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : FOLDER3: Excluded from sync (and deletion)
2018/02/13 11:00:21 DEBUG : New Text Document.txt: Excluded from sync (and deletion)
2018/02/13 11:00:21 INFO  : Google drive root '': Waiting for checks to finish
2018/02/13 11:00:21 INFO  : Google drive root '': Waiting for transfers to finish
2018/02/13 11:00:21 INFO  : Waiting for deletions to finish
2018/02/13 11:00:21 INFO  :
Transferred:      0 Bytes (0 Bytes/s)
Errors:                 0
Checks:                 0
Transferred:            0
Elapsed time:       600ms

2018/02/13 11:00:21 DEBUG : Go routines at exit 5
2018/02/13 11:00:21 DEBUG : rclone: Version "v1.37" finishing with parameters ["rclone.exe" "--files-from" "FILTERLIST.txt" "-vv" "sync" "Z:\\FOLDER" "REMOTE:"]

It doesn’t seem like it’s referencing the file list at all? Am I doing something wrong?


#2

Huh. Turns out that it works just fine if I go through the filter list and change all of the back slashes to forward slashes.

Damn Windows to Unix problems. I should really switch over one day.


#3

Yes that will do the trick! rclone standardised on unix paths for its internals which normally doesn’t matter but in this instance leaves Windows users with a bit more work to do.