0

好吧,我目前使用 lbackup 来备份远程服务器上的文件。所以我使用我的帐户登录,该帐户不是 root。

而且我得到了以下错误,显然,我的帐户不是 www-data。

有什么建议么?

$ ls -l /var/www/cache |grep 缓存 drwx------ 13 www-data www-data 4096 Jul 28 06:27 缓存

Sun Jul 28 23:53:17 CST 2013

Hard Links Enabled
Synchronizing...
Creating Links
rsync: opendir "/var/www/bbs/cache" failed: Permission denied (13)
IO error encountered -- skipping file deletion
rsync: opendir "/var/www/bbs/files" failed: Permission denied (13)
rsync: opendir "/var/www/bbs/store" failed: Permission denied (13)
rsync: send_files failed to open "/var/www/bbs/config.php": Permission denied (13)

Number of files: 10048
Number of files transferred: 1919
Total file size: 202516431 bytes
Total transferred file size: 16200288 bytes
Literal data: 16200288 bytes
Matched data: 0 bytes
File list size: 242097
File list generation time: 0.002 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 39231
Total bytes received: 5617302

sent 39231 bytes  received 5617302 bytes  50731.24 bytes/sec
total size is 202516431  speedup is 35.80
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at      main.c(1536) [generator=3.0.9]

WARNING! : Data Transfer Interrupted

WARNING! : No mail configuration partner specified.
           To specify a mail partner configuration file add the
           following line into your backup configuration file :

           mailconfigpartner=nameofyourmailpartner.conf
4

1 回答 1

0

你有两种可能:

a) 忽略您无法阅读的文件 ( --exclude=PATTERN)

b) 通过以其他用户身份登录或通过chmod-ing 文件来获得这些文件的读取权限,无论是什么适当的

于 2013-07-29T08:20:13.550 回答