[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] Re: a bug when using Cygwin
From: |
Kevin Horton |
Subject: |
[rdiff-backup-users] Re: a bug when using Cygwin |
Date: |
Tue, 9 Jan 2007 13:58:50 -0500 |
On 9 Jan 2007, at 12:39, Qiqi Yan wrote:
Hi all,
I mentioned the problem in a previous post. But I think it might be
better to start off a new topic for a little more attention,
because it could cause files in the backup folder to go missing. It
happens on rdiff-backup 1.1.7 with cygwin, and possibly other case
insensitive platforms.
1. create file "a" in a folder.
2. run a backup with very default setting.
now file "a" is created in the backup folder.
3. rename "a" to "A" in the source folder.
4. run a backup again.
now you will find that neither file "a" or file "A" is in the
backup folder!
strangely, if you start with an "A" file, and rename it to "a" in
the second backup, the "a" file will still be in the backup folder.
I don't know if by using --override-chars-to-quote appropriately,
this could be solved. Actually I never got --override-chars-to-
quote to work on cygwin... anyone has any successful examples?
Very interesting. I can confirm a bug on OS X 10.4.8 with rdiff-
backup 1.1.7.
I created a file named file_name.txt, then did a backup. Then I
deleted this file, and replaced it with another file named
File_Name.txt, and did another backup. Then I tried a restore of the
directory that those files were in, but it failed like this:
% sudo rdiff-backup -v7 -r now /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/Desktop/butest/ /Users/
my_short_user_name/temp/restores_new/
Using mirror root directory /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name
Unable to import module xattr.
Extended attributes not supported on filesystem at /Volumes/
backup_volume_name/bu/backup_directory_name/my_short_user_name/rdiff-
backup-data
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/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 On
Mac OS X Finder information On
-----------------------------------------------------------------
Making directory /Users/my_short_user_name/temp/restores_new
Making directory /Users/my_short_user_name/temp/restores_new/rdiff-
backup.tmp.0
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/5-_ a.snapshot.gz
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/5-_ a.snapshot.gz
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/:\ á
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/:\ á
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/A
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/a
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/foo
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/foo
Making directory /Users/my_short_user_name/temp/restores_new/rdiff-
backup.tmp.0/hl
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/hardlinked_file1
Hard linking /Users/my_short_user_name/temp/restores_new/rdiff-
backup.tmp.0/hl/hardlinked_file2 to /Users/my_short_user_name/temp/
restores_new/rdiff-backup.tmp.0/hardlinked_file1
Unable to import module xattr.
Extended attributes not supported on filesystem at /Users/
my_short_user_name/temp/restores_new/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Users/my_short_user_name/temp/
restores_new/rdiff-backup.tmp.0
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/dir_inc_check
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/dir_inc_check
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/regfile
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/regfile
Touching /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/high_perms
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
0/high_perms
Deleting /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.0
Removing directory /Users/my_short_user_name/temp/restores_new/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
Extended filenames On
Access control lists Off
Extended attributes Off
Case sensitivity Off
Mac OS X style resource forks On
Mac OS X Finder information On
-----------------------------------------------------------------
Starting restore of /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/Desktop/butest to /Users/
my_short_user_name/temp/restores_new as it was as of Tue Jan 9
13:40:09 2007.
Processing changed file .
Warning: Could not restore file Desktop/butest/File_Name.txt!
A regular file was indicated by the metadata, but could not be
constructed from existing increments because last increment had type
None. Instead of the actual file's data, an empty length file will be
created. This error is probably caused by data loss in the
rdiff-backup destination directory, or a bug in rdiff-backup
Processing changed file File_Name.txt
Regular copying ('File_Name.txt',) to /Users/my_short_user_name/temp/
restores_new/rdiff-backup.tmp.1
Writing file object to /Users/my_short_user_name/temp/restores_new/
rdiff-backup.tmp.1
Warning: Hash da39a3ee5e6b4b0d3255bfef95601890afd80709 of File_Name.txt
doesn't match recorded hash b500db7066a23c23a7444dc8ec6c19764b366d53!
Copying attributes from ('File_Name.txt',) to /Users/
my_short_user_name/temp/restores_new/rdiff-backup.tmp.1
Writing resource fork to ('rdiff-backup.tmp.1',)
Writing carbon data to ('rdiff-backup.tmp.1',)
Setting time of /Users/my_short_user_name/temp/restores_new/rdiff-
backup.tmp.1 to 1168362106
Renaming /Users/my_short_user_name/temp/restores_new/rdiff-backup.tmp.
1 to /Users/my_short_user_name/temp/restores_new/File_Name.txt
Copying attributes from () to /Users/my_short_user_name/temp/
restores_new
Setting time of /Users/my_short_user_name/temp/restores_new to
1168362106
Restore finished
Cleaning up
========================================================================
==
Notes: for security reasons, I have replace the short user name,
volume name, etc in this transcript.
I checked the restored directory. It had an empty file with the
correct name.
Then, I tried to restore the previous file, with name file_name.txt.
The transcript was:
% sudo rdiff-backup -v7 -r 1B /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/Desktop/butest/ /Users/
my_short_user_name/temp/restores_new2/
zsh: correct '/Users/my_short_user_name/temp/restores_new2/' to '/
Users/my_short_user_name/temp/restores_new/' [nyae]? n
Using mirror root directory /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name
Unable to import module xattr.
Extended attributes not supported on filesystem at /Volumes/
backup_volume_name/bu/backup_directory_name/my_short_user_name/rdiff-
backup-data
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/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 On
Mac OS X Finder information On
-----------------------------------------------------------------
Making directory /Users/my_short_user_name/temp/restores_new2
Making directory /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/5-_ a.snapshot.gz
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/5-_ a.snapshot.gz
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/:\ á
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/:\ á
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/A
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/a
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/foo
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/foo
Making directory /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/hl
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/hardlinked_file1
Hard linking /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/hl/hardlinked_file2 to /Users/my_short_user_name/temp/
restores_new2/rdiff-backup.tmp.0/hardlinked_file1
Unable to import module xattr.
Extended attributes not supported on filesystem at /Users/
my_short_user_name/temp/restores_new2/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Users/my_short_user_name/temp/
restores_new2/rdiff-backup.tmp.0
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/dir_inc_check
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/dir_inc_check
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/regfile
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/regfile
Touching /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/high_perms
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.0/high_perms
Deleting /Users/my_short_user_name/temp/restores_new2/rdiff-backup.tmp.0
Removing directory /Users/my_short_user_name/temp/restores_new2/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
Extended filenames On
Access control lists Off
Extended attributes Off
Case sensitivity Off
Mac OS X style resource forks On
Mac OS X Finder information On
-----------------------------------------------------------------
Starting restore of /Volumes/backup_volume_name/bu/
backup_directory_name/my_short_user_name/Desktop/butest to /Users/
my_short_user_name/temp/restores_new2 as it was as of Tue Jan 9
10:13:28 2007.
Processing changed file .
Processing changed file file_name.txt
Regular copying ('file_name.txt',) to /Users/my_short_user_name/temp/
restores_new2/rdiff-backup.tmp.1
Writing file object to /Users/my_short_user_name/temp/restores_new2/
rdiff-backup.tmp.1
Warning: Hash b500db7066a23c23a7444dc8ec6c19764b366d53 of file_name.txt
doesn't match recorded hash 57f1aeca464198f31f1ec9032a6cda77a1083a0b!
Copying attributes from ('file_name.txt',) to /Users/
my_short_user_name/temp/restores_new2/rdiff-backup.tmp.1
Writing resource fork to ('rdiff-backup.tmp.1',)
Writing carbon data to ('rdiff-backup.tmp.1',)
Setting time of /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.1 to 1168355479
Renaming /Users/my_short_user_name/temp/restores_new2/rdiff-
backup.tmp.1 to /Users/my_short_user_name/temp/restores_new2/
file_name.txt
Copying attributes from () to /Users/my_short_user_name/temp/
restores_new2
Setting time of /Users/my_short_user_name/temp/restores_new2 to
1168355479
Restore finished
Cleaning up
========================================================================
==
The file file_name.txt was created, but it had the wrong content.
The content was that of File_Name.txt, which had replaced file_name.txt.
Clearly this is a bug.
Kevin Horton
Ottawa, Canada