linux 镜像备份工具rsnyc

1、本地拷贝文件
nohup rsync -avzh /data/wwwroot/xhprof/* /mnt/xhprof/ &
2、更改文件夹名称
mv /data/wwwroot/xhprof /data/wwwroot/xhprof1
3、添加软连接
ln -s /mnt/xhprof/ /data/wwwroot/xhprof
4、删除原文件
rm -rf /data/wwwroot/xhprof

来自雨中上人的文章
原文地址:https://www.cnblogs.com/qize/p/11736648.html