tips.paddyonline.net

If you need tips & tricks, here they are...

Joomla! AddThis

Share

Rsync

Article Index

How to use Rsync to syncronize two directories

rsync -arvchtS --no-R --delete-during --numeric-ids

Examples

# rsync -arvchtS --no-R --delete-during --numeric-ids blaj/blaj2 blaj1
sending incremental file list
blaj2/
blaj2/du
blaj2/hej

sent 173 bytes received 54 bytes 454.00 bytes/sec
total size is 0 speedup is 0.00

# rm blaj/blaj2/hej
# rsync -arvchtS --no-R --delete-during --numeric-ids blaj/blaj2 blaj1
sending incremental file list
blaj2/
deleting blaj2/hej

sent 74 bytes received 16 bytes 180.00 bytes/sec
total size is 0 speedup is 0.00

Add comment

Security code
Refresh

Please consider supporting our efforts.