directory synchronization

Paul Slootman paul+rsync at wurtel.net
Tue Feb 23 09:13:41 MST 2010


On Tue 23 Feb 2010, Vahid Moghaddasi wrote:
> 
> I can’t seem to get this working. I need synchronize the files from a remote
> directory to a local, and then delete the files on the remote after getting
> them to local.
> 
> This is what I did that does not delete anything on any of the servers:
> 
> 
> 
> rsync --rsync-path=/usr/local/bin/rsync -v -t –r –delete -e /bin/ssh
> /report/today user at server01:/report/*.rpt
> 
> I also used --delete-before, --delete-after, --delete-during, etc.. but same

You really need to read the description of those commands carefully.

You probably want --remove-source-files .



Paul


More information about the rsync mailing list