RyanH
March 27, 2022, 8:36am
1
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
ncw
(Nick Craig-Wood)
March 27, 2022, 8:52am
2
If you want this you'll have to use rclone sync not rclone copy.
Test first with --dry-run
RyanH
March 27, 2022, 8:06pm
3
Thanks @ncw . Unless I've misunderstood, the documentation, Documentation , suggests that copy
is supported.
asdffdsa
(jojothehumanmonkey)
March 27, 2022, 8:15pm
4
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
1 Like
RyanH
March 27, 2022, 8:30pm
5
@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
?
asdffdsa
(jojothehumanmonkey)
March 27, 2022, 8:40pm
6
if a source file is modified,
the corresponding dest file is moved from f:/test
to f:/archive
the source file is copied from e:/test
to f:/test
which, in this case, is the same behavior as rclone sync
system
(system)
Closed
March 30, 2022, 8:41pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.