Tuesday, December 2, 2008

rsync over ssh

rsync -avzr -e ssh root@src:/ dest

Option:
a = archive
z = compress
--exclude=".*/" # excluded hidden file or hidden directory
r = recursive directory
e = over ssh
vv verbose
--delete = xoa cac file co tren dest ma ko co tren src
-u, --update skip files that are newer on the receiver

No comments: