?????????scp???????????????????Rsync????????????????????è??????????????Rsync????????????????????Щ????????????????Щ???????????????scp??12??scp??????????????
???????
????rsync????unix???μ?????????????——remote sync??????????????????? Remote Sync???????? ????????????????????SSH??rsync?????????
???????????????????????????????????????????????????????????????????Rsync???????????籸?????????????/???????????????????Unix??Window????????????????????????к??????????Э?顣Rsync??????????????????????????Rsync??????TCP 873??????????shell??rsh??ssh?????????Rsync???????????????????????
????rsync???????????
???????????????????????俽????????????′Σ????????????????????
???????????????????sshЭ??????????
??????????rsync?????????????????????顣
??????:
????1 #rsysnc [options] source path destination path
???????????????????????ü??ɡ?
????????????????????????????

 

1  [root@localhost /]# rsync -zvr /home/aloft/ /backuphomedir
2     building file list ... done
3     .bash_logout
4     .bash_profile
5     .bashrc
6     sent 472 bytes received 86 bytes 1116.00 bytes/sec
7     total size is 324 speedup is 0.58

???????????????У?
????-z?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Щ??????????????Ч?????
????-v:????????ú????????????????????????????????????????
????-r:????????????????????????????????????á?
??????????????????????????

 

1 [root@localhost /]# rsync -azvr /home/aloft/ /backuphomedir
2     building file list ... done
3     ./
4     .bash_logout
5     .bash_profile
6     .bashrc
7
8     sent 514 bytes received 92 bytes 1212.00 bytes/sec
9     total size is 324 speedup is 0.53

????-a:??????????????????????е?????????????ú??????顢???????????????????
???????????????????????

 

1   root@localhost /]# rsync -avz /home/aloft/ azmath@192.168.1.4:192.168.1.4:/share/rsysnctest/
2     Password:
3
4     building file list ... done
5     ./
6     .bash_logout
7     .bash_profile
8     .bashrc
9     sent 514 bytes received 92 bytes 1212.00 bytes/sec
10     total size is 324 speedup is 0.53

??????????????????????????IP??????????????????????????????????????????????????????????????????????????е??????