mkdir /tmp/null
yum install rsync -y
rsync --delete-before -a -H -v --progress --stats /tmp/null/ /backup/photos/
rsync --delete-before -a -H --stats /tmp/null/ /www/html/runtime/cache/e9ea01f3df/
本文介绍了如何使用mkdir命令创建目录,通过yum安装rsync工具,并利用rsync命令实现文件的删除与同步操作。具体包括从临时目录null同步至backup/photos及www/html/runtime/cache目录的详细过程。
mkdir /tmp/null
yum install rsync -y
rsync --delete-before -a -H -v --progress --stats /tmp/null/ /backup/photos/
rsync --delete-before -a -H --stats /tmp/null/ /www/html/runtime/cache/e9ea01f3df/
929

被折叠的 条评论
为什么被折叠?