Hi, I would be nice to know if there is a method to avoid rclone to delete new files when synchronize from remote. For example, I create a new file in a my local directory, then i run rclone sync from remote to local and that file is deleted since it is not on the remote. But since it is a new file, what I'm expecting is that it is leaved there. Thanks for help.
https://rclone.org/commands/rclone_copy/
"Copy the source to the destination. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Doesn’t delete files from the destination"
Nope, because if there are old files in the remote that were deleted I want rclone to delete them in the local also. Copy just does not delete anything.
perhaps this? https://rclone.org/docs/#u-update
"This forces rclone to skip any files which exist on the destination and have a modified time that is newer than the source file."
Run a command from source to destination and what would the dest look like? rclone just has a source and destination and that source could be a remote or could be a local as the same goes with destination. I'm just trying to make sure I get the picture.
if with that config you run rclon sync dest source then you will got:
source:
filea
fileb
Destination:
filea
fileb
Now, this is right if the filec was previously removed from the source. The point is if not, if I have created filec directly in destination and i run rclone sync source dest, then It'll be deleted and we got the same result as i write above.
What do you mean? I've just tell you what should happen. If the fine is a new created one, It should not be deleted just because it is not on the source. This is the behavior I would like to have.
Okay now I'll try again. If you run rclone sync source dest you get this:
source:
filea
fileb
(obviously not modified)
dest:
filea
fileb
(becomes the same as source, the filec is deleted)
Now if i create a new file in destination, filed, and then i run the command again, the filed will be deleted. This means that from
source:
filea
fileb
dest:
filea
fileb
filed (the new created one)
and i run rclone sync source dest i got
source
filea
fileb
dest
filea
fileb
(filed is deleted)
Last, if i delete filea from source and i run the sync command, then it is (now correctly) removed from dest also.
So what i want is that file not directly eliminated from the source are kept in the destination. It is possible?
I am sorry if I keep repeating but I am not asking you to explain the sync process and what sync does.
Just make a before picture and after picture so we can ensure we're saying the same thing. You keep saying the same words but I am asking for a visual to make sure I am translating what you are saying properly.
If you can just type out:
Before
Source
files
Dest
files
After
Source
Files
Dest
Files
I think I know what you want but the picture solidifies it.