通过在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同步服务器文件
原文地址:https://www.cnblogs.com/imxiu/p/4604527.html