Spousteni rdiff-backup cronem

Michal Nosek michal.nosek at dece.cz
Tue Jul 3 09:08:29 CEST 2007


Zdravim
Snazim se spustit zalohovani pomoci rdiff-backup a nejak se mi nedari.
Mam pres NFS pripojeno /home na ktere chci zalohovat. Pokud spustim
zalohu
rucne /usr/local/bin/rdiff-backup /usr/jails/192.168.2.205 /home/zalohy/Postfix/ tak je vse OK.
Pokud ovsem necham spustit ulohu cronem tak prd.

 crontab -l

52 8 * *
* /usr/local/bin/rdiff-backup /usr/jails/192.168.2.205 /home/zalohy/Postfix/

A vystup :-(

Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 285, in
Main
    take_action(rps)
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 255, in
take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 308, in
Backup
    backup.Mirror(rpin, rpout)
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38,
in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 216,
in patch
    for diff in rorpiter.FillInIter(source_diffiter, dest_rpath):
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 181,
in FillInIter
    for rp in rpiter:
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 103,
in get_diffs
    for dest_sig in dest_sigiter:
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 167,
in get_sigs
    for src_rorp, dest_rorp in cls.CCPP:
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 307,
in next
    if len(self.cache_indicies) > self.cache_size: self.shorten_cache()
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 348,
in shorten_cache
    changed_flag, success_flag, inc)
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line 382,
in post_process
    statistics.FileStats.update(source_rorp, dest_rorp, changed, inc)
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/statistics.py", line
389, in update
    if len(cls.line_buffer) >= 100: cls.write_buffer()
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/statistics.py", line
406, in write_buffer
    cls._fileobj.write(cls._line_sep.join(cls.line_buffer))
  File "/usr/local/lib/python2.4/gzip.py", line 203, in write
    self.fileobj.write( self.compress.compress(data) )
IOError: [Errno 70] Stale NFS file handle
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file '/home/zalohy/Postfix/rdiff-backup-data/file_statistics.2007-07-03T08:52:01+02:00.data.gz',
mode 'wb' at 0x81e7020 0x8314dac>> ignored
close failed: [Errno 70] Stale NFS file handle
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file '/home/zalohy/Postfix/rdiff-backup-data/error_log.2007-07-03T08:52:01+02:00.data.gz',
mode 'wb' at 0x81d1ec0 0x8323e8c>> ignored
close failed: [Errno 70] Stale NFS file handle
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file '/home/zalohy/Postfix/rdiff-backup-data/mirror_metadata.2007-07-03T08:52:01+02:00.snapshot.gz',
mode 'wb' at 0x81e7068 0x8314e2c>> ignored
close failed: [Errno 70] Stale NFS file handle




More information about the Users-l mailing list