Rclone sync from file list question

Hi guys, I have a question and I can’t seem to figure it out… I’d like to sync a subset of my files from the rclone mount to a local folder. I have made a list in a local file named “localfiles” and am trying the following command:

rclone sync /rclonemountlocation /locallocation --delete-before --files-from=localfiles -v

It works perfectly in that it copies all files FROM rclone TO local, but… it doesn’t delete any files from the local location that are no longer needed (synced). Isn’t that what the --delete-before command should do?

Is there a trick I missed, or is that just not possible? Thanks in advance :smiley:

You want the --delete-excluded flag. Try with --dry-run first!

1 Like