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

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

[rdiff-backup-users] problem while restoring2


From: Madan Kumar
Subject: [rdiff-backup-users] problem while restoring2
Date: Fri, 18 Jul 2008 17:04:12 +0530

 
Hi Andrew,
 
Thanks for such a great response.
Here are the answers of your questions::
 
I followed the steps that are given in http://katastrophos.net/andre/blog/2005/11/02/rdiff-backup-on-windows/ web link to install rdiff-backup on my machine.
>>What version of rdiff-backup are you using?
I am using rdiff-backup1.1.5
 
>>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 


reply via email to

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