No changes occur when using --backup-dir

What is the problem you are having with rclone?

There are no changes to the files located on the destination when using --backup-dir=. The files in the source location have been deleted i.e. the files from the destination location aren't moved to the --backup-dir

Run the command 'rclone version' and share the full output of the command.

rclone.exe --stats 10s --progress --checksum --log-file=rclone-list.txt --log-level DEBUG copy e:/test/ f:/test/ --backup-dir=f:/archive/

Which cloud storage system are you using? (eg Google Drive)

Local drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone.exe --stats 10s --progress --checksum --log-file=rclone-list.txt --log-level DEBUG copy e:/test/ f:/test/ --backup-dir=f:/archive/

A log from the command with the -vv flag

2022/03/xx xx:xx:xx INFO : There was nothing to transfer 2022/03/xx xx:xx:xx INFO : Transferred: 0 B / 0 B, -, 0 B/s, ETA - Elapsed time: 0.0s

If you want this you'll have to use rclone sync not rclone copy.

Test first with --dry-run

Thanks @ncw. Unless I've misunderstood, the documentation, Documentation, suggests that copy is supported.

hi,
really, not an issue with --backup-dir,
as --backup-dir does work with rclone copy and with rclone sync

when a source file is deleted, the behavior of rclone copy and rclone sync are different.

with rclone copy, the dest file is not deleted.
" Doesn't delete files from the destination"

with rclone sync, the dest file is deleted.
"Destination is updated to match source, including deleting files"

however, when using rclone sync --backup-dir, the dest file is moved from f:/test to f:/archive
that is the behavior you seem to want.

this is easy to test. with your command, just change rclone copy to rclone sync --dry-run

@asdffdsa, if the file isn't deleted or moved when using --backup-dir with copy, what's the purpose or what are the use cases, --backup-dir is used with copy?

if a source file is modified,

  1. the corresponding dest file is moved from f:/test to f:/archive
  2. the source file is copied from e:/test to f:/test

which, in this case, is the same behavior as rclone sync

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