The files are only removed when —delete is passed. Let’s verify:
foo$ mkdir src dst
foo$ touch src/{1,2,3,4,5}
foo$ rsync -av src/ dst/
building file list ... done
./
1
2
3
4
5
sent 328 bytes received 136 bytes 928.00 bytes/sec
total size is 0 speedup is 0.00
foo$ rm
Nice, thanks Vince...the man pages are more than a little confusing on this
topic but logically the -delete option should mean that the default is no
delete. I should have just done a test case (like you did) so thanks for
the sledge hammer over the head.
/brian chee
On Thu, Aug 28, 2014 at
So I'm trying to find if rsync has an option to NOT delete remote files if
they're no longer on the local machine.
The issue is that I can't afford to lose any data off my sensors. I've got
the remote server mounted in fstab so that it looks like two local
directories.
I want to make sure
isn't the default behavior to keep files on the target? i think you
have to use the --delete option to force delete from the target.
So I'm trying to find if rsync has an option to NOT delete remote files if
they're no longer on the local machine.
The issue is that I can't afford to lose any
I thought so too, but all the docs I've been finding seems to indicate that
it deleteswhich doesn't work for me.
Brian chee
On Aug 27, 2014 6:34 PM, Dwight Victor (Gmail) dwight.vic...@gmail.com
wrote:
isn't the default behavior to keep files on the target? i think you have
to use the