rsync与scp同步数据

rsync -avz [email protected]:/newfiles/ /newfiles/
-v:显示日志
-z:压缩传输
-a: 相当于-rlptgoD,
网络策略:
rsync有两种常用的认证方式,一种为rsync-daemon方式,另外一种则是ssh

scp的方法:
vi /scp.sh
script -q /log.log -c “scp -Cpr [email protected]:/newfiles/ / ”
nohup /scp.sh >/dev/null 2>&1 &

猜你喜欢

转载自blog.csdn.net/qingfengxulai/article/details/80855047