Follow up question re "Sync with --max-age"

My original post closed automatically yesterday so I'm making a new one with a follow up question.

As stated in the solution, the --max-age filter ignores everything on the source, so that existing files don't get deleted. But my follow up question is: What about the files that are supposed to be deleted during a sync? If I have files AB, CD, and on my source , with AB being filtered out by max-age, and AB EF on my destination, does AB or EF get deleted? EF doesn't exist on source, so should be deleted. AB does exist on source but is filtered out of the sync, but shouldn't it be deleted because it's not listed in the sync list?

Source:
AB
CD

Sync list after filters:
CD

Dest:
AB
EF

So what's left on Dest afterwards?

Hi Eric,

Scenarios like these are often best understood by testing, so I suggest you try something this:

rclone touch ./testSource/fileAB
rclone touch ./testSource/fileEF
rclone lsl ./testSource
rclone sync ./testSource ./testDest --max-age=10m -vv
rclone lsl ./testDest
# wait for 10+ minutes
rclone touch ./testSource/fileCD
rclone deletefile ./testSource/fileEF
rclone lsl ./testSource
rclone sync ./testSource ./testDest --max-age=10m -vv
rclone lsl ./testDest

Now, what is the answer to your questions?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.