小编kia*_*ana的帖子

rsync 权限被拒绝 (13),我做错了什么?

我正在尝试将我的网站数据迁移到新服务器并不断收到此错误。我设置了公钥访问,并且能够使用 .txt 文件完成 rsync 然后我想尝试一个目录,但它不起作用。这是我第一次使用 rsync,所以如果您需要更多信息,请告诉我。

编辑:两者都是远程服务器,旧的是 Ubuntu 14.04.4,新的是 Ubuntu 18.04.3

我对每个都有 sudo 权限,但我可能不拥有我试图移动的目录。我不知道怎么查。

$ rsync -rt /var/www kiana@123.456.789.00:/home
rsync: recv_generator: mkdir "/home/www" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: readlink_stat("/var/www/vhosts/testing.site.org/wp-config.php") failed: Permission denied (13)
rsync: readlink_stat("/var/www/vhosts/testing.site.org/wp-mail.php") failed: Permission denied (13)
rsync: readlink_stat("/var/www/vhosts/testing.site.org/wordpress") failed: Permission denied (13)
rsync: readlink_stat("/var/www/vhosts/testing.site.org/wp-signup.php") failed: Permission denied (13)
rsync: readlink_stat("/var/www/vhosts/testing.site.org/wp-trackback.php") failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at …
Run Code Online (Sandbox Code Playgroud)

ubuntu rsync

7
推荐指数
2
解决办法
5万
查看次数

标签 统计

rsync ×1

ubuntu ×1