small doubt about rsync

Smoot Carl-Mitchell smoot at tic.com
Tue Feb 8 15:46:33 UTC 2011


On Tue, 2011-02-08 at 15:12 +0530, Tapas Mishra wrote:

> If the server A on which I have to restore backup from a USB disk
> I do as follows
> 
> rsync -avz /usb/disk -e ssh root at IP:/
> 
> will it over write all the files on server A with the ones on my USB
> (which is what I want also)
> or I need to do some thing else.

rsync only overwrites existing files on the target found on the source
or adds new files from the source unless you use the --delete flag.  In
that case it deletes files on the target not found on the source.

-- 
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at tic.com





More information about the ubuntu-users mailing list