Backup

rdiff-backup - 備份文件夾小於原始/恢復文件時出錯

  • July 13, 2018

我正在測試 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

發生了什麼,我該如何解決?

謝謝你。

看起來像權限:OSError:

$$ Errno 13 $$權限被拒絕:’/home/brt/backups2/rdiff-backup.tmp.0' 聲明它被拒絕訪問此文件/目錄,從而導致連接失去。

還請檢查是否有足夠的可用空間

引用自:https://unix.stackexchange.com/questions/455188