Robert Edmonds <edmo...@debian.org> writes:

> I'm not quite sure what the issue is here, so I've Cc'd the upstream bup
> mailing list.  It looks like one of the ioctl() calls in the
> bup_set_linux_file_attr() function is failing.
>
> Did you run the 'bup restore' as a regular user or as root?
>
> What is the type of the filesystem that you're attempting to restore to?

Both good questions.  For example, right now bup's handling of
differences between the source and destination filesystems could
likely use improvement.

>>   File "/usr/lib/bup/bup/metadata.py", line 611, in _apply_linux_attr_rec
>>     set_linux_file_attr(path, self.linux_attr)
>> OSError: [Errno 22] Invalid argument: 'redacted/#.fetchmailrc#

Any chance you still have the file around, and if so, assuming the
output isn't sensitive, I wonder what "ls -l", "stat" and "lsattr" say
about it?

And even if you don't still have it in the filesystem, I wonder what
these commands say:

  bup ls -l home-dir/latest/home/redacted/#.fetchmailrc#

  bup cat-file --meta home-dir/latest/home/redacted/#.fetchmailrc# \
    bup meta -tvvf -

>> I am guessing that filenames containing hashes are not liked by bup?
>> This means I won't be able to back up any folders containing emacs edited 
>> files.
>> #file# style files are used regularly by emacs.

I'm fairly sure that normally #file# should be handled without any
trouble.  I think there's something else going on here.

>> Should you require more details (or if I've missed something obvious to get 
>> around this
>> issue) please let me know.

I wonder if adding this to the restore might provide a workaround for
now:

  --exclude-rx '^/redacted/#\.fetchmailrc#$'

Or perhaps:

  --exclude-rx '^redacted/#\.fetchmailrc#$'

Not sure which one is correct offhand.

Hope this helps
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to