not handling directory-names with spaces properly

Bug #503851 reported by jzacsh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
backup-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: backup-manager

To run backup-manager manually, sometimes I'll:

sudo -i
backup-manager &
disown
exit

Whenever I run backup-manager manually, I get the following error output to whatever terminal I'm in:

Unable to create "/multidrive/backup/pickup/backup-manager/boxName-multidrive.20100106.master.tar.gz", check /tmp/bm-tarball.log.dSg2St
Target "/home/uname/Ubuntu" does not exist, skipping.
Target "One" does not exist, skipping.
3 errors occurred during the tarball generation.

I'm not sure why there's a failure (first line of the message), but here's the referenced log's contents:

$ sudo less /tmp/bm-tarball.log.dSg2St
/bin/tar: Removing leading `/' from member names
/bin/tar: /multidrive/backup/pickup/backup-manager/boxName-multidrive.20100106.master.tar.gz: file changed as we read it

If anyone can help me with that, then great... but more so what this bug is about is the face that the last two "target does not exist" errors seem to be ocurring purely because it looks like the program must be working from its own `ls` output, and didn't properly utilize it (put it in quotes...? maybe?) and is breaking up what should be '/home/uname/Ubuntu One'

(should Ubuntu One be named in such a manner? idk.. that's another story... ... should that break this program? I don't think so.) Let me know if I should file this somewhere else. :)

Revision history for this message
jzacsh (jzacsh) wrote :

oh, also.. `uname -a`
Linux boxName 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux

Revision history for this message
gzarkadas (gzarkadas) wrote :

The BM_TARBALL_DIRECTORIES variable at /etc/backup-manager.conf does not support spaces in path names. For such a case one has to use the BM_TARBALL_TARGETS array variable.

This is stated both in the ...-doc package user guide (at /usr/share/doc/backup-manager-doc/) and inside the configuration file in the comments around the declaration of this variable. The configuration dialog also gives a hint when speaking about "space separated list of directories" (you can have a space inside a name, when space is the separator).

This bug should be closed IMO. If you believe that path-with-spaces support is not adequately advertised as is, then file a wishlist bug against the package to include support for BM_TARBALL_TARGETS during 'dpkg-reconfigure' time.

Revision history for this message
Artur R. Czechowski (arturcz) wrote :

You can also qute the space with \ like in following example:
export BM_TARBALL_DIRECTORIES="/home/uname/Ubuntu\ One /any/other/directory\ with\ space /directory/w/o/space"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.