通过在shell脚本中用scp或rsync实现远程同步文件

Linux rsync 同步实践
#!/bin/bash 
/usr/loca/rsync/bin/rsync -vazu -progress –delete 
–password-file=/etc/rsync.secret terry@192.168.100.21:/terry/ /home #!/bin/bash 
/usr/loca/rsync/bin/rsync -vazu -progress –delete 
–password-file=/etc/rsync.secret terry@192.168.100.21:/terry/ /home 
Linux 服务器同步 Rsync同步服务器文件

 

posted on 2015-06-27 19:34  imxiu  阅读(1220)  评论(0编辑  收藏  举报

导航