rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] trying to restart rdiff-backup after failure wi


From: Athanasios Dousis
Subject: Re: [rdiff-backup-users] trying to restart rdiff-backup after failure without deleting entire mirror
Date: Fri, 06 Feb 2009 11:42:25 -0600
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Maarten, Jakob,

Thanks for your quick responses and suggestions. I'm using v1.1.5 in Ubuntu 6.06.2 with kernel 2.6.21 on an Intel Xeon system. I have python 2.4 installed.

When I delete the rdiff-backup-data directory and then try the force argument as such:

/usr/bin/rdiff-backup --exclude-other-filesystems --force /home /backup/home

I get the following message:

---

Exception ''NoneType' object has no attribute 'set_sha1'' raised of class 'exceptions.AttributeError': File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 295, in error_check_Main
    try: Main(arglist)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 271, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 337, in Backup
    backup.Mirror(rpin, rpout)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 218, in patch
    ITR(diff.index, diff)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 281, in __call__
    last_branch.fast_process(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 515, in fast_process
    if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 538, in patch_to_temp
    elif not self.patch_diff_to_temp(basis_rp, diff_rorp, new):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 569, in patch_diff_to_temp
    self.CCPP.update_hash(diff_rorp.index, report.sha1_digest)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 461, in update_hash
    self.get_source_rorp(index).set_sha1(sha1sum)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 295, in error_check_Main
    try: Main(arglist)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 271, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 337, in Backup
    backup.Mirror(rpin, rpout)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 218, in patch
    ITR(diff.index, diff)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 281, in __call__
    last_branch.fast_process(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 515, in fast_process
    if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 538, in patch_to_temp
    elif not self.patch_diff_to_temp(basis_rp, diff_rorp, new):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 569, in patch_diff_to_temp
    self.CCPP.update_hash(diff_rorp.index, report.sha1_digest)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 461, in update_hash
    self.get_source_rorp(index).set_sha1(sha1sum)
AttributeError: 'NoneType' object has no attribute 'set_sha1'

---

How do I empty the rdiff-backup-data directory without deleting it? Also, do you have any further suggestions for how to fix my situation?

Thanks and kind regards,
Nasos

Jakob Unterwurzacher wrote:
Maarten Bezemer schrieb:
Hi,

How do I restore rdiff-backup-data without having to delete the entire
backup directory (~1TB) and start from scratch?
What version of rdiff-backup are you using?

Since you say the rdiff-backup-data directory is already messed up,
there's little point in trying to keep the increments (history). So
removing the rdiff-backup-data directory and starting the rdiff-backup
command with the --force argument added to the command line should do
the trick.
Remember to remove the --force argument once this first run is finished,
since it may haunt you if you continue to run production with the
--force still present.

The easier option IMO is to empty (not delete) the rdiff-backup-data
directory - this way you don't have to mess with command line switches,
as you don't need --force.


Jakob





reply via email to

[Prev in Thread] Current Thread [Next in Thread]