Rsync commands

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Rsync commands

Post by a24uall »

Various rsync commands.

Check "/home/arun/rsync/1/" and "/home/arun/rsync/2/" and deletes any files in folder "2" which are not in "1".
rsync -vrlptD --delete /home/arun/rsync/1/ /home/arun/rsync/2/
Sample output below :
sending incremental file list
./
deleting 159
deleting 1586
deleting 158

sent 27 bytes received 15 bytes 84.00 bytes/sec
total size is 0 speedup is 0.00
Arun
WebhostingDevelopment.com
Post Reply

Return to “Basic Commands”