Hi, David:

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?

David Creelman wrote:
> Package: bup
> Version: 0.27-1
> Severity: important
> 
> Dear Maintainer,
> 
> Have successfully done a backup via index and then save.
> 
> export BUP=/media/me/some-drive/backups
> bup index /home/redacted
> bup save -n home-dir /home/redacted
> 
> Have then done an incremental backup
> bup index /home/redacted
> bup save -n home-dir /home/redacted
> 
> All completes with minor errors about web cache files dissapearing, but okay.
> 
> Tried to restore the latest backup by the following
> 
> bup restore -C test-dir home-dir/latest/home/redacted
> 
> Got the following error
> 
> Traceback (most recent call last):
>   File "/usr/lib/bup/cmd/bup-restore", line 343, in <module>
>     do_node(n.parent, n, opt.sparse, owner_map, meta = meta)
>   File "/usr/lib/bup/cmd/bup-restore", line 279, in do_node
>     do_node(top, sub, sparse, owner_map, meta = m)
>   File "/usr/lib/bup/cmd/bup-restore", line 281, in do_node
>     apply_metadata(meta, fullname, opt.numeric_ids, owner_map)
>   File "/usr/lib/bup/cmd/bup-restore", line 105, in apply_metadata
>     m.apply_to_path(name, restore_numeric_ids = restore_numeric_ids)
>   File "/usr/lib/bup/bup/metadata.py", line 809, in apply_to_path
>     apply_metadata(path, restore_numeric_ids=num_ids)
>   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#
> 
> I was expecting the file to be able to be restored (indeed it seems to have 
> been 
> backed up).
> 
> 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.
> 
> Not sure how to solve this one. 
> 
> Should you require more details (or if I've missed something obvious to get 
> around this
> issue) please let me know.
> 
> Regards,
> David
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> 
> Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages bup depends on:
> ii  git              1:2.1.4-2.1
> ii  libc6            2.19-18
> ii  par2             0.6.13-1
> ii  python           2.7.9-1
> ii  python-pylibacl  0.5.2-1
> ii  python-pyxattr   0.5.3-1
> ii  python2.7        2.7.10-2
> pn  python:any       <none>
> 
> Versions of packages bup recommends:
> ii  bup-doc         0.27-1
> ii  python-fuse     2:0.2.1-11
> ii  python-tornado  4.2.0-1
> 
> bup suggests no packages.
> 
> -- no debconf information

-- 
Robert Edmonds
edmo...@debian.org


-- 
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