我正在测试 rdiff-backup,我想也许有人可以帮助我。 1:为什么我的备份比原来的文件夹小?在我的远程服务器中,我有 36G,而在我的备份服务器中,它只有 29G。
2:我试图恢复一些文件,但出现此错误:
Exception '[Errno 13] Permission denied: '/home/brt/backups2/rdiff-backup.tmp.0'' raised of class '<type 'exceptions.OSError'>':
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
take_action(rps)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 290, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 554, in Restore
dest_rp.conn.fs_abilities.restore_set_globals(dest_rp)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/connection.py", line 450, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/connection.py", line 370, in reval
if isinstance(result, Exception): raise result
Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 30, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
take_action(rps)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 290, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/Main.py", line 554, in Restore
dest_rp.conn.fs_abilities.restore_set_globals(dest_rp)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/connection.py", line 450, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/local/lib/python2.7/site-packages/rdiff_backup/connection.py", line 370, in reval
if isinstance(result, Exception): raise result
OSError: [Errno 13] Permission denied: '/home/brt/backups2/rdiff-backup.tmp.0'
Fatal Error: Lost connection to the remote system
发生了什么事以及如何解决?
谢谢。
答案1
看起来像权限:OSError:[Errno 13]权限被拒绝:'/home/brt/backups2/rdiff-backup.tmp.0'
表明此文件/目录被拒绝,从而导致连接丢失。
另请检查是否有足够的可用空间