Use sync or copy

BY DELETING THIS COMMENT, I AM CONFIRMING I HAVE READ THIS AND WILL USE THE TEMPLATE BELOW FOR MY POST.

What is the problem you are having with rclone?

i have a backup folder that is uploaded to google drive. when the contents of the source folder is deleted, rclone also erases the contents of the source. I need rclone not to delete the destination folder, but just add new files

What is your rclone version (output from rclone version)

rclone v1.57.0

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

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

c:\rclone\rclone -vP sync --progress C:\backup gdrive:ARQUIVOSDEORIGEM

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

If you use sync, it makes the destination look like the source.

If you use copy, destination looks like the source, but without deleting anything in the destination.

So depending on what you want to happen, pick the right one.

You can also check out:

Documentation (rclone.org)

I believe that copyto is the best choice, however when changing the content of the file at the source it also replaces it at the destination, even using the copyto command

c:\rclone\rclone -vP copyto --progress C:\backup gdrive:PASTADEDESTINO

copyto operates exactly the same as copy but allows for renaming of a file or a directory.

copy or copyto is synchronizing text files.
How do I make it not sync but make a copy?

It's for any files. rclone doesn't care what the file is.

Use copy or copyto...

thank you, I managed to solve

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