Rsync
January 20, 2014 — 0:40

Author: silver  Category: linux  Comments: 0

a archive (-rlptgoD)
A preserve ACLs
c checksum
n dryrun
r recursive
v verbose

rsync -arv --delete /mnt1/backups/ /mnt1/backups/

l recreate symlinks
t preserve modification times

rsync  -v -rlt --delete /mnt1/backups/ /mnt2/backups/rsync -avte 'ssh -p 2299' /dir1/dir2/ [email protected]:/dir1/dir2/
for i in dir1 dir2 dir2; do
        rsync -avte 'ssh -i /root/rsync_id_rsa -p 2222' /source/$i/ [email protected]:/target/$i/
done

Leave a Reply