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

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

Re: [rdiff-backup-users] Re: restore a specific directory


From: Max Duessar
Subject: Re: [rdiff-backup-users] Re: restore a specific directory
Date: Sun, 17 Aug 2008 12:07:41 -0500

> What happens if you do '-r 0B' (meaning, restore the current backup), which
> should be the same as '-r now'? If those work, then the problem is with your
> increments and you should do:
>
> sudo rdiff-backup --list-increments /Volumes/Backup320/

Well, I was able to run --list-increments before to see all the
previous backups, but now I'm getting an error when doing anything
with rdiff-backup.

"Fatal Error: Previous backup to /Volumes/Backup320 seems to have failed.
Rerun rdiff-backup with --check-destination-dir option to revert
directory to state before unsuccessful session."




Here's what I get with -v8 and -r 0B:

$ sudo rdiff-backup -v8 -r 0B /Volumes/Backup320/var/mysql/ /tempp/mysql
Using rdiff-backup version 1.2.0
Using mirror root directory /Volumes/Backup320
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Volumes/Backup320/rdiff-backup-data
Unable to import win32security module. Windows ACLs
not supported by filesystem at /Volumes/Backup320/rdiff-backup-data
escape_dos_devices not required by filesystem at
/Volumes/Backup320/rdiff-backup-data
-----------------------------------------------------------------
Detected abilities for rdiff-backup repository (read only) file system:
  Access control lists                         Off
  Extended attributes                          On
  Windows access control lists                 Off
  Case sensitivity                             Off
  Escape DOS devices                           Off
  Mac OS X style resource forks                On
  Mac OS X Finder information                  On
-----------------------------------------------------------------
Making directory /tempp/mysql/rdiff-backup.tmp.0
Touching /tempp/mysql/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Deleting /tempp/mysql/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Touching /tempp/mysql/rdiff-backup.tmp.0/uniᄉ
Deleting /tempp/mysql/rdiff-backup.tmp.0/uniᄉ
Touching /tempp/mysql/rdiff-backup.tmp.0/:\"
Deleting /tempp/mysql/rdiff-backup.tmp.0/:\"
Touching /tempp/mysql/rdiff-backup.tmp.0/A
Deleting /tempp/mysql/rdiff-backup.tmp.0/a
Touching /tempp/mysql/rdiff-backup.tmp.0/foo
Deleting /tempp/mysql/rdiff-backup.tmp.0/foo
Making directory /tempp/mysql/rdiff-backup.tmp.0/hl
Touching /tempp/mysql/rdiff-backup.tmp.0/hardlinked_file1
Hard linking /tempp/mysql/rdiff-backup.tmp.0/hl/hardlinked_file2 to
/tempp/mysql/rdiff-backup.tmp.0/hardlinked_file1
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /tempp/mysql/rdiff-backup.tmp.0
Unable to import win32security module. Windows ACLs
not supported by filesystem at /tempp/mysql/rdiff-backup.tmp.0
Touching /tempp/mysql/rdiff-backup.tmp.0/dir_inc_check
Deleting /tempp/mysql/rdiff-backup.tmp.0/dir_inc_check
Touching /tempp/mysql/rdiff-backup.tmp.0/regfile
Deleting /tempp/mysql/rdiff-backup.tmp.0/regfile
Touching /tempp/mysql/rdiff-backup.tmp.0/high_perms_file
Touching /tempp/mysql/rdiff-backup.tmp.0/high_perms_dir
Deleting /tempp/mysql/rdiff-backup.tmp.0/high_perms_file
Deleting /tempp/mysql/rdiff-backup.tmp.0/high_perms_dir
Touching /tempp/mysql/rdiff-backup.tmp.0/symlinked_file1
Deleting /tempp/mysql/rdiff-backup.tmp.0/symlinked_file2
Deleting /tempp/mysql/rdiff-backup.tmp.0/symlinked_file1
escape_dos_devices not required by filesystem at /tempp/mysql/rdiff-backup.tmp.0
Deleting /tempp/mysql/rdiff-backup.tmp.0
Removing directory /tempp/mysql/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for restore target (read/write) file system:
  Ownership changing                           On
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Symlink permissions                          On
  Extended filenames                           On
  Windows reserved filenames                   Off
  Access control lists                         Off
  Extended attributes                          On
  Windows access control lists                 Off
  Case sensitivity                             Off
  Escape DOS devices                           Off
  Mac OS X style resource forks                On
  Mac OS X Finder information                  On
-----------------------------------------------------------------
Restore: must_escape_dos_devices = 0
Fatal Error: Previous backup to /Volumes/Backup320 seems to have failed.
Rerun rdiff-backup with --check-destination-dir option to revert
directory to state before unsuccessful session.




When I run "--check-destination-dir" I get more errors:

$ sudo rdiff-backup --check-destination-dir /Volumes/Backup320/
Exception '[Errno 2] No such file or directory:
'/Volumes/Backup320/rdiff-backup-data/increments/System.2008-08-15T02:04:40-05:00.dir''
raised of class '<type 'exceptions.OSError'>':
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
302, in error_check_Main
    try: Main(arglist)
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
322, in Main
    take_action(rps)
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
280, in take_action
    elif action == "check-destination-dir": CheckDest(rps[0])
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
786, in CheckDest
    dest_rp.conn.regress.Regress(dest_rp)
  File "/Library/Python/2.5/site-packages/rdiff_backup/regress.py",
line 71, in Regress
    for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
  File "/Library/Python/2.5/site-packages/rdiff_backup/rorpiter.py",
line 277, in __call__
    if self.finish_branches(index) is None:
  File "/Library/Python/2.5/site-packages/rdiff_backup/rorpiter.py",
line 229, in finish_branches
    to_be_finished.end_process()
  File "/Library/Python/2.5/site-packages/rdiff_backup/regress.py",
line 333, in end_process
    rf.regress_inc.delete()
  File "/Library/Python/2.5/site-packages/rdiff_backup/rpath.py", line
1047, in delete
    else: self.conn.os.unlink(self.path)

Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
302, in error_check_Main
    try: Main(arglist)
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
322, in Main
    take_action(rps)
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
280, in take_action
    elif action == "check-destination-dir": CheckDest(rps[0])
  File "/Library/Python/2.5/site-packages/rdiff_backup/Main.py", line
786, in CheckDest
    dest_rp.conn.regress.Regress(dest_rp)
  File "/Library/Python/2.5/site-packages/rdiff_backup/regress.py",
line 71, in Regress
    for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
  File "/Library/Python/2.5/site-packages/rdiff_backup/rorpiter.py",
line 277, in __call__
    if self.finish_branches(index) is None:
  File "/Library/Python/2.5/site-packages/rdiff_backup/rorpiter.py",
line 229, in finish_branches
    to_be_finished.end_process()
  File "/Library/Python/2.5/site-packages/rdiff_backup/regress.py",
line 333, in end_process
    rf.regress_inc.delete()
  File "/Library/Python/2.5/site-packages/rdiff_backup/rpath.py", line
1047, in delete
    else: self.conn.os.unlink(self.path)
OSError: [Errno 2] No such file or directory:
'/Volumes/Backup320/rdiff-backup-data/increments/System.2008-08-15T02:04:40-05:00.dir'



> If those do not work, then you should look at the permissions on
> /Volumes/Backup320/ or try with a higher verbosity, '-v 8'.
>
> Also, what command line are you using to run rdiff-backup?

rdiff-backup \
        --force \
        --exclude-fifos \
        --exclude-other-filesystems \
        --exclude-sockets \
        --exclude /.Spotlight-V100 \
        --exclude /automount \
        --exclude /cores \
        --exclude /Network \
        --exclude /private/tmp \
        --exclude /private/var/vm \
        --exclude /tmp \
        --exclude "/Users/*/.Trash" \
        --exclude "/Users/*/Library/Caches" \
        --exclude "/Users/*/tmp" \
        --exclude /Volumes/ \
        / /Volumes/Backup320



> Also, since you have a /Volumes folder, I assume you are using a Mac. Did
> you uncheck the 'Ignore Permissions on this Volume' option in the Finder?
> (Select the Backup320 volume, then go to File -> Get Info)

Hm, I'm on Leopard... there's an option called "Ignore ownership on
this volume" which sounds like the same (Tiger?) option. It is not
checked.

Should I just cut my losses and reformat the backup drive and start
over? I'm getting those errors with any rdiff-backup command that's
run.

reply via email to

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