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

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

Re: [rdiff-backup-users] problem while restoring


From: Madan Kumar
Subject: Re: [rdiff-backup-users] problem while restoring
Date: Fri, 18 Jul 2008 16:19:37 +0530

Hi Andrew,
 
Thanks for such a great response.
Here are the answers of your questions::
 
>>What version of rdiff-backup are you using?
I am using rdiff-backup1.1.15
 
>>Are you using Cygwin? Or are you using the new native Windows port?
yes I am using Cygwin.
 
>>What version of Python?
Python2.5
 
>>What filesystem are your drives using? Are they network-mounted?
I am using NTFS and FAT32.
In case of NTFS- The problem that I told you earliar.
In case of FAT32- It give me one extra warning only "Hard linking not supported by filesystem at <drive name where I want to restore like F:/destdir>" rest is the same as in the case of NTFS.  
No they are not network mounted, I am using all the things on my local machine.
 
>>Can you do the restores without using the --force option?
Yes Andrew, I am able to do it without --force option but if the directory or file already exist, it gives error "restore target <directory name like F:/destdir > already exist, specify --force to overwrite "   (No prob with this).
 
>>Can you restore using one of the other date arguments? For example, "rdiff-backup -r 1B" or "rdiff-backup -r 2B" or "rdiff-backup -r 3B" etc.
Yes, I tried to restore using 1B,2B... date argument but the result is same. Are there some other date arguements beside B and D? I know only these two.
 
** Now I am giving you the output when I run the command with higher verbosity.
 
Restoring from latest increments that is just one day older(no error and restore successfully):---.
 
address@hidden ~
$ rdiff-backup --force -v8 -r 1D zdest E:/z1
Using mirror root directory /home/Administrator/zdest
Unable to import module xattr.
Extended attributes not supported on filesystem at /home/Administrator/zdest/rdi
ff-backup-data
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /home/Administrator/zdest/rdiff-backup-data
-----------------------------------------------------------------
Detected abilities for rdiff-backup repository (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Making directory E:/z1/rdiff-backup.tmp.0
Touching E:/z1/rdiff-backup.tmp.0/5-_ a.
Deleting E:/z1/rdiff-backup.tmp.0/5-_ a.
Touching E:/z1/rdiff-backup.tmp.0/:\ á,%
Touching E:/z1/rdiff-backup.tmp.0/A
Deleting E:/z1/rdiff-backup.tmp.0/a
Touching E:/z1/rdiff-backup.tmp.0/foo
Deleting E:/z1/rdiff-backup.tmp.0/foo
Making directory E:/z1/rdiff-backup.tmp.0/hl
Touching E:/z1/rdiff-backup.tmp.0/hardlinked_file1
Hard linking E:/z1/rdiff-backup.tmp.0/hl/hardlinked_file2 to E:/z1/rdiff-backup.
tmp.0/hardlinked_file1
Unable to import module xattr.
Extended attributes not supported on filesystem at E:/z1/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at E:/z1/rdiff-backup.tmp.0
Touching E:/z1/rdiff-backup.tmp.0/dir_inc_check
Deleting E:/z1/rdiff-backup.tmp.0/dir_inc_check
Touching E:/z1/rdiff-backup.tmp.0/regfile
Deleting E:/z1/rdiff-backup.tmp.0/regfile
Touching E:/z1/rdiff-backup.tmp.0/high_perms
Deleting E:/z1/rdiff-backup.tmp.0/high_perms
Deleting E:/z1/rdiff-backup.tmp.0
Removing directory E:/z1/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for restore target (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Extended filenames                           Off
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Starting restore of zdest to E:/z1 as it was as of Sun Jul 20 13:00:55 2008.
Processing changed file .
Applying patch s.txt.2008-07-20T11:56:45+05:30.diff.gz
Processing changed file s.txt
Regular copying ('s.txt',) to E:/z1/rdiff-backup.tmp.1
Writing file object to E:/z1/rdiff-backup.tmp.1
Hash dfc75a8b5b96194ce28bc4f8147409906c2b2b3c of s.txt verified
Copying attributes from ('s.txt',) to E:/z1/rdiff-backup.tmp.1
Setting time of E:/z1/rdiff-backup.tmp.1 to 1216535202
Renaming E:/z1/rdiff-backup.tmp.1 to E:/z1/s.txt
Copying attributes from () to E:/z1
Setting time of E:/z1 to 1216362132
Restore finished
Cleaning up
 
Restoring from older increment that is of two days older(ERROR occur ):---

address@hidden ~
$ rdiff-backup --force -v8 -r 2D zdest E:/z3_2d
Using mirror root directory /home/Administrator/zdest
Unable to import module xattr.
Extended attributes not supported on filesystem at /home/Administrator/zdest/rdi
ff-backup-data
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /home/Administrator/zdest/rdiff-backup-data
-----------------------------------------------------------------
Detected abilities for rdiff-backup repository (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Making directory E:/z3_2d
Making directory E:/z3_2d/rdiff-backup.tmp.0
Touching E:/z3_2d/rdiff-backup.tmp.0/5-_ a.
Deleting E:/z3_2d/rdiff-backup.tmp.0/5-_ a.
Touching E:/z3_2d/rdiff-backup.tmp.0/:\ á,%
Touching E:/z3_2d/rdiff-backup.tmp.0/A
Deleting E:/z3_2d/rdiff-backup.tmp.0/a
Touching E:/z3_2d/rdiff-backup.tmp.0/foo
Deleting E:/z3_2d/rdiff-backup.tmp.0/foo
Making directory E:/z3_2d/rdiff-backup.tmp.0/hl
Touching E:/z3_2d/rdiff-backup.tmp.0/hardlinked_file1
Hard linking E:/z3_2d/rdiff-backup.tmp.0/hl/hardlinked_file2 to E:/z3_2d/rdiff-b
ackup.tmp.0/hardlinked_file1
Unable to import module xattr.
Extended attributes not supported on filesystem at E:/z3_2d/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at E:/z3_2d/rdiff-backup.tmp.0
Touching E:/z3_2d/rdiff-backup.tmp.0/dir_inc_check
Deleting E:/z3_2d/rdiff-backup.tmp.0/dir_inc_check
Touching E:/z3_2d/rdiff-backup.tmp.0/regfile
Deleting E:/z3_2d/rdiff-backup.tmp.0/regfile
Touching E:/z3_2d/rdiff-backup.tmp.0/high_perms
Deleting E:/z3_2d/rdiff-backup.tmp.0/high_perms
Deleting E:/z3_2d/rdiff-backup.tmp.0
Removing directory E:/z3_2d/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for restore target (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Extended filenames                           Off
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Starting restore of zdest to E:/z3_2d as it was as of Sat Jul 19 13:07:23 2008.
Processing changed file .
Applying patch s.txt.2008-07-20T11:56:45+05:30.diff.gz
Applying patch s.txt.2008-07-19T11:56:13+05:30.diff.gz

Exception 'basis_file must be a (true) file' raised of class '<type 'exceptions.
TypeError'>':
  File "/usr/lib/python2.5/site-packages/rdiff_backup/robust.py", line 32, in ch
eck_common_error
    try: return function(*args)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 465, in
get_fp
    Rdiff.write_patched_fp(current_fp, delta_fp, new_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Rdiff.py", line 73, in wri
te_patched_fp
    rpath.copyfileobj(librsync.PatchedFile(basis_fp, delta_fp), out_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/librsync.py", line 156, in
 __init__
    raise TypeError("basis_file must be a (true) file")
 
Exception 'basis_file must be a (true) file' raised of class '<type 'exceptions.
TypeError'>':
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 295, in err
or_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 315, in Mai
n
    take_action(rps)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 281, in tak
e_action
    elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 490, in Res
tore
    inc_rpath, dest_rp, time)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 37, in R
estore
    TargetS.patch(target, diff_iter)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 288, in
patch
    for diff in rorpiter.FillInIter(diff_iter, target):
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 177, in
 FillInIter
    for rp in rpiter:
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 244, in
get_diffs_from_collated
    diff = cls.get_diff(mir_rorp, target_rorp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 257, in
get_diff
    file_fp = cls.rf_cache.get_fp(expanded_index, mir_rorp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 351, in
get_fp
    return rf.get_restore_fp()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 485, in
get_restore_fp
    return robust.check_common_error(error_handler, get_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/robust.py", line 32, in ch
eck_common_error
    try: return function(*args)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 465, in
get_fp
    Rdiff.write_patched_fp(current_fp, delta_fp, new_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Rdiff.py", line 73, in wri
te_patched_fp
    rpath.copyfileobj(librsync.PatchedFile(basis_fp, delta_fp), out_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/librsync.py", line 156, in
 __init__
    raise TypeError("basis_file must be a (true) file")
 
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 295, in err
or_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 315, in Mai
n
    take_action(rps)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 281, in tak
e_action
    elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 490, in Res
tore
    inc_rpath, dest_rp, time)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 37, in R
estore
    TargetS.patch(target, diff_iter)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 288, in
patch
    for diff in rorpiter.FillInIter(diff_iter, target):
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 177, in
 FillInIter
    for rp in rpiter:
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 244, in
get_diffs_from_collated
    diff = cls.get_diff(mir_rorp, target_rorp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 257, in
get_diff
    file_fp = cls.rf_cache.get_fp(expanded_index, mir_rorp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 351, in
get_fp
    return rf.get_restore_fp()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 485, in
get_restore_fp
    return robust.check_common_error(error_handler, get_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/robust.py", line 32, in ch
eck_common_error
    try: return function(*args)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/restore.py", line 465, in
get_fp
    Rdiff.write_patched_fp(current_fp, delta_fp, new_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Rdiff.py", line 73, in wri
te_patched_fp
    rpath.copyfileobj(librsync.PatchedFile(basis_fp, delta_fp), out_fp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/librsync.py", line 156, in
 __init__
    raise TypeError("basis_file must be a (true) file")
TypeError: basis_file must be a (true) file
 
 
---  I dont know why this error is comming. Please suggest me what should I do.
---  How can we restore the incremental backup that has taken one hour or two hour before. Like above $rdiff-backup -r 1D(or 1B) dest I:/dest1 restore the incremental of one day older suppose I need to restore just one hour older or two hour older.
 
 
 
Please provide me your great suggestions.
 
Thanks & regards
M Chauhan 
 

 
  
 
 
 
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, July 18, 2008 7:27 AM
Subject: Re: [rdiff-backup-users] problem while restoring

On Jul 17, 2008, at 7:33 AM, Madan Kumar wrote:

Hi All,
I am using rdiff-backup on windows XP and on Vista.
I am abe to take the backups successfully.
While restoring backups I am running following command:
$ rdiff-backup --force -r now adest/ I:/adest1        

 

{adest/ keeps backup+incrementals; adest1/ is the Directory where to restore the backups }
 
I am easily restoring the data from current mirror ie by using above command. It restore current data(no problem).
I am able to restore the data with latest incremental(that I have taken one day back) by using following command::
address@hidden ~
$ rdiff-backup --force -r 1D adest/ I:/adest1 

 

But when I try to restore the data with second last (or any older incremental) that I have taken two days back by using following command::
$ rdiff-backup --force -r 2D adest/ I:/adest1


Hi Madan,

This is an unusual error and indicates that rdiff-backup is having some trouble with the actual files it thinks it is restoring from. Since you mention that you are using it on Windows, it may take time to sort this out. First, here are some questions:
 
What version of rdiff-backup are you using?

Are you using Cygwin? Or are you using the new native Windows port?

What version of Python?

What filesystem are your drives using? Are they network-mounted?

Can you do the restores without using the --force option? That option can be dangerous and not do what you intend.

Can you restore using one of the other date arguments? For example, "rdiff-backup -r 1B" or "rdiff-backup -r 2B" or "rdiff-backup -r 3B" etc.

Finally, try running rdiff-backup with a higher level of verbosity, such as -v8 and sending the output to the mailing list. This will help show exactly which file rdiff-backup is working on when it encounters the failure. After you know which file is causing the failure, you can then go and find out more about that file. In this case, we know that Python is not reporting that it is of type 'FileType' -- that leads to the question, well, what type is it?



Andrew

reply via email to

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