Re: [rdiff-backup-users] Recovery from recovery

2007-08-08 Thread Decibel!
On Wed, Aug 08, 2007 at 05:11:49PM -0400, Andrew Ferguson wrote:
 Decibel! wrote:
  Actually, this is backing up an Intel Mac to a FreeBSD box. I'm not
  trying to restore right now, just back out the failed backup. Simply
  removing the file from the backup resulted in another error (which I
  didn't think to capture), so I've just deleted it from the metadata
  (along with another file that was also mode 896)... that did the trick
  (though I'd be a bit surprised if it didn't...)
  
  Though, the error occurred before it reported Regressing attributes,
  which makes me think this is a different issue (or the logging isn't
  quite accurate).
 
 Jim, thanks for finding this problem. I've added code to CVS (1.1.13) to
 log and handle this situation in the future.
 
 The reason the error occurred before it reported Regressing attributes
 is because error messages and log messages take different paths (and
 different buffers) to the output device. The stack trace and mode 896
 (1600 in octal) proves that the issue was due to setting the sticky bit
 on a non-directory.

Great, thanks!

Now if only we could do away with the need to recover from a failed
backup... :)
-- 
Decibel!, aka Jim C. Nasby, Database Architect  [EMAIL PROTECTED] 
Give your computer some brain candy! www.distributed.net Team #1828


pgpxvpzZP6KZU.pgp
Description: PGP signature
___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Re: [rdiff-backup-users] Recovery from recovery

2007-08-07 Thread aurbain


try removing the rdiff-backup-data directory?


Decibel! wrote:

I recently had to recover from an aborted backup. Unfortunately, the
recovery itself had to be aborted. Now I'm trying to do
-check-destination-dir, but I keep running into this:

Regressing file Previous Systems.localized/Previous System 
1/private/var/vm/sleepimage
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 257, 
in take_action
elif action == check-destination-dir: CheckDest(rps[0])
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py, line 869, 
in CheckDest
dest_rp.conn.regress.Regress(dest_rp)
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, line 
70, in Regress
for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py, line 
285, in __call__
last_branch.fast_process(*args)
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, line 232, in fast_process  
if rf.metadata_rorp.isreg(): self.restore_orig_regfile(rf)

  File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, line 
256, in restore_orig_regfile
rpath.copy_attribs(rf.metadata_rorp, tf)
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 
162, in copy_attribs
rpout.chmod(rpin.getperms())
  File /usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 
759, in chmod
self.conn.os.chmod(self.path, permissions  Globals.permission_mask)
OSError: [Errno 79] Inappropriate file type or format: './Previous 
Systems.localized/Previous System 1/private/var/vm/rdiff-backup.tmp.1'

How do I recover from that?
  



___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki




___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Re: [rdiff-backup-users] Recovery from recovery

2007-08-07 Thread Decibel!
How exactly is throwing away my backup recovery?

I'm not just being pedantic, either... that backup is for a laptop I've
had to send in for repairs. They're not supposed to wipe the drive, but
if something happens I'm going to be wanting to use this backup to get
my data back.

On Tue, Aug 07, 2007 at 02:20:21PM -0400, aurbain wrote:
 
 try removing the rdiff-backup-data directory?
 
 
 Decibel! wrote:
 I recently had to recover from an aborted backup. Unfortunately, the
 recovery itself had to be aborted. Now I'm trying to do
 -check-destination-dir, but I keep running into this:
 
 Regressing file Previous Systems.localized/Previous System 
 1/private/var/vm/sleepimage
 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 
   257, in take_action
 elif action == check-destination-dir: CheckDest(rps[0])
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py, line 
   869, in CheckDest
 dest_rp.conn.regress.Regress(dest_rp)
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, 
   line 70, in Regress
 for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py, 
   line 285, in __call__
 last_branch.fast_process(*args)
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, 
   line 232, in fast_process  if rf.metadata_rorp.isreg(): 
 self.restore_orig_regfile(rf)
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/regress.py, 
   line 256, in restore_orig_regfile
 rpath.copy_attribs(rf.metadata_rorp, tf)
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py, 
   line 162, in copy_attribs
 rpout.chmod(rpin.getperms())
   File /usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py, 
   line 759, in chmod
 self.conn.os.chmod(self.path, permissions  Globals.permission_mask)
 OSError: [Errno 79] Inappropriate file type or format: './Previous 
 Systems.localized/Previous System 1/private/var/vm/rdiff-backup.tmp.1'
 
 How do I recover from that?
   
 
 
 ___
 rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
 Wiki URL: 
 http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
 

-- 
Decibel!, aka Jim C. Nasby, Database Architect  [EMAIL PROTECTED] 
Give your computer some brain candy! www.distributed.net Team #1828


pgp3nXvnyqhA2.pgp
Description: PGP signature
___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Re: [rdiff-backup-users] Recovery from recovery

2007-08-07 Thread Andrew Ferguson
Decibel! wrote:
 I recently had to recover from an aborted backup. Unfortunately, the
 recovery itself had to be aborted. Now I'm trying to do
 -check-destination-dir, but I keep running into this:
 
 Regressing file Previous Systems.localized/Previous System 
 1/private/var/vm/sleepimage

For starters, you don't need this file, and I would advise against
restoring it. You don't need it because: 1) it is from before an upgrade
of Mac OS X (say from 10.3 to 10.4 or 10.4 to a 10.5 candidate) and 2)
it is a file that is recreated as needed.

I would delete it from your backup and see if that solves the problem.
If not, you will have to unzip the relevant mirror_metadata file (with
gunzip) and then edit the entry for that file, either removing it
entirely or changing the unix permissions line to something innoccous
like 600. You can find the right mirror_metadata file by doing:

$ zgrep sleepimage mirror_metadata*

in your rdiff-backup-data dir. Make sure you edit the entry for this
one, as it may also find an entry for your current sleepimage file if
you have been backing up /var/vm (aka /private/var/vm).

Looking at the permissions for /var/vm/swapfile0 on my system, they are
1600 (that is, the sticky bit is set). I'll have to see if that kind of
setup causes a problem for rdiff-backup. I don't have a
/var/vm/sleepimage (are you using an Intel Mac?)

What does `ls -lo /var/vm/sleepimage` report on your system? Or `ls -lo
Previous Systems.localized/Previous System 1/private/var/vm/sleepimage`
? I'm curious what's causing the chmod error.


Andrew



   File /usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 
 759, in chmod
 self.conn.os.chmod(self.path, permissions  Globals.permission_mask)
 OSError: [Errno 79] Inappropriate file type or format: './Previous 
 Systems.localized/Previous System 1/private/var/vm/rdiff-backup.tmp.1'
 
 How do I recover from that?


-- 
Andrew Ferguson - [EMAIL PROTECTED]



___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki