如何告诉 rsync 获取文件(失败并显示“没有这样的文件或目录”)

如何告诉 rsync 获取文件(失败并显示“没有这样的文件或目录”)
sudo rsync -avP ~/wordpress/ /var/www/html/

接收错误为:

sending incremental file list
rsync: change_dir "/root/wordpress" failed: No such file or directory (2)

sent 20 bytes  received 12 bytes  64.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]

请帮助我实际上正在尝试将 centos 与 wordpress 连接,并且收到此错误。谢谢。

答案1

问题已解决。谢谢。正确的语法是:

sudo rsync -avP /wordpress/ /var/www/html/

相关内容