[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Chinese characters in filenames on Cygwin + Win
From: |
Andrew Ferguson |
Subject: |
Re: [rdiff-backup-users] Chinese characters in filenames on Cygwin + Win XP |
Date: |
Tue, 09 Jan 2007 22:53:55 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
Qiqi Yan wrote:
> Hi all,
>
> Thank you for your reply. But here comes more puzzles...and possibly
> a bug of rdiff-backup.
>
> Dave is right in that after --override-chars-to-quote there should be
> a list of chars. The default is "^A-Za-z0-9_ -." for win XP.
>
> For my purpose, I changed it to ":", and this command worked at the
> first try:
>
> rdiff-backup --override-chars-to-quote ":" /cygdrive/e/test/original
> /cygdrive/e/test/backup
>
> However, when this was run for a second time (without doing anything
> else), this error showed up:
>
> ---------------------------------------------------------- Fatal
> Error: Bad rdiff-backup-data dir on destination side
>
> The rdiff-backup data directory
> /cygdrive/e/test/backup/rdiff-backup-data exists, but we cannot find
> a valid current_mirror marker. You can avoid this message by
> removing the rdiff-backup-data directory; however any data in it will
> be lost.
Qiqi,
This is a bug in rdiff-backup. rdiff-backup is looking for a filename of
the form "current_mirror*".
However, because of the quoting in effect during the first backup
session, the name of the current_mirror marker was quoted! As a result,
rdiff-backup can't find the correct, existing current_mirror file.
You can confirm this by doing: `ls backup/rdiff-backup-data/` after your
first backup session. You will see a file that starts:
;099;117;114;114;101;110;116_;109;105;114;114;111;114
if you unquote that string, you will see that it corresponds to
"current_mirror".
So, this is a bug in how rdiff-backup goes looking for the
current_mirror marker, in particular, it needs to quote/unquote at the
correct time.
Andrew
--
Andrew Ferguson - address@hidden