sbackup tar fails on Ubuntu 18.04 and xubuntu 18.10

Bug #1807973 reported by Doug Shelton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sbackup
New
Undecided
Unassigned

Bug Description

OS xubuntu 18.10
sbackup version 0.11.6
installed from synaptic package manager main repository

/bin/tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
/bin/tar: --exclude-from '/tmp/sbackup/excludes.list' has no effect
/

it looks like tar syntax has changed so "--exclude-from" no longer works.

Revision history for this message
Doug Shelton (dshelton-san) wrote :
Revision history for this message
Doug Shelton (dshelton-san) wrote :

this issue is caused by a change in behavior in tar 1.3, wherein it sets the exit code "2" when positional arguments are used out of order.

The fix to this problem is to modify /ar_backend/tar.py. Change

    options.append('--files-from=%s' % tmp_incl)
    options.append('--exclude-from=%s' % tmp_excl)

to

    options.append('--exclude-from=%s' % tmp_excl)
    options.append('--files-from=%s' % tmp_incl)

Revision history for this message
Asmodan (johannes-ahlers) wrote :

Described solution #2 works for me. Thank you.

Revision history for this message
thomas (thomas003) wrote (last edit ):

thanks for fix. works also with 20.04.

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

Other bug subscribers

Bug attachments

Remote bug watches

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