If a file changes from a directory to a regular file, rsyncrypto
errors out and does not continue, which is annoying when it's in the
middle of my ~million file backup.  -_-

Example: starting with:

$ find orig -ls                                                            
6455565    4 drwxr-xr-x   3 rlpowell users        4096 Apr 27 11:10 orig
6455574    4 drwxr-xr-x   2 rlpowell users        4096 Apr 27 11:20 orig/testdir
6455575    4 -rw-r--r--   1 rlpowell users           4 Apr 27 11:10 
orig/testdir/testfile

I run:

$ rsyncrypto --trim=1 --ne-nesting=5 --name-encrypt=filemap --delete -c -v -r 
orig enc keys backup.crt

I then turn testdir into a file, so it looks like this:

$ find orig -ls
6455597    4 drwxr-xr-x   2 rlpowell users        4096 Apr 27 11:22 orig
6455598    0 -rw-r--r--   1 rlpowell users           0 Apr 27 11:22 orig/testdir

$ rsyncrypto --trim=1 --ne-nesting=5 --name-encrypt=filemap --delete -c -v -r 
orig enc keys backup.crt
Encrypting orig/testdir
lstat failed(orig/testdir/testfile): Not a directory

You'll have to take my word for it that rsyncrypto exits at that
point.

As a workaround, you can remove the file from the filemap.

Here's some Perl to remove a file from the filemap; I'm afraid I've
made no attempt to make it user friendly.

perl -n0e 'BEGIN { open( FM, ">[NEWFILEMAP]"); } m{^/[0-9A-F]+ 
[FILENAME_TO_REMOVE]} || do { print FM; } ' <[FILEMAP]

To just see the contents of the filemap so you know what to m{...}
for, try:

tr '\000' '\012' <[FILEMAP] | less

I've got to say, between this and the delete bug (deletes with a
filemap don't actually delete anything), EncFS is looking mighty
tasty.  I've tested, and rsync *does* work with it (in the sense of
saving transfer time/data).

-Robin

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Rsyncrypto-devel mailing list
Rsyncrypto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel

Reply via email to