non en_US locales misleads backuppc into saying backups are not succeeding
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
backuppc (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: backuppc
in 2.1.2-5ubuntu3, backuppc mistakenly reports that backups are unsuccesful when the default locale is not en_US (nl_NL.UTF-8 in my case). To reproduce, set a different locale for the backuppc server process, and use the tar backup option. Essentially:
#Contents of file /etc/backuppc/
$Conf{XferMethod} = 'tar';
$Conf{TarShareName} = ['/etc'];
$Conf{TarClientCmd} = '/usr/bin/sudo tar -c -v -f - -C $shareName+ --totals';
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';
It seems the output caused by the "--totals" options for tar is parsed by backuppc. Only english is parsed correctly.
to fix, make
$Conf{TarClientCmd} = '/usr/local/
with in the shell script:
export LC_ALL=en_US; /usr/bin/sudo tar -c -v -f - -C $*';
Well, maybe an upstream bug? as this is my first filing, I wasn't too sure what to do.
Changed in backuppc (Ubuntu): | |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.