Gnu Tar exclude appears to be broken in Stretch

If none of the more specific forums is the right place to ask

Gnu Tar exclude appears to be broken in Stretch

Postby grooveman » 2017-08-10 18:27

Hi.

For years I have been backing up systems using tar and the -X (or --exclude) options. Now that I have upgraded some systems to Stretch, I find that it no longer works -- on any of these systems.

Normall I'd do something like this:
Code: Select all
tar -cpjvf /mnt/smbmountedfolder/mysystem.tar.bzw ./* -X /etc/xcludedfiles


Where /etc/xcluded files contained entries like:
Code: Select all
./sys
./tmp
./mnt


It always worked. Now with Stretch, however, no pattern I throw at it works. Doesn't matter if I try to use a file, or if I try to exclude right on the command line...

I tried using dozens of combinations of wildcards, quotes, escape characters, regex options... nothing works. I cannot find anything on google about this either.

It looks like the version on Stretch is 1.29b-1.1. I don't get any help from the man pages or from google.

Can anyone confirm this? Did they change the syntax, or is this just plain broken?

Thanks.

G
grooveman
 
Posts: 83
Joined: 2009-07-24 23:13

Re: Gnu Tar exclude appears to be broken in Stretch

Postby grooveman » 2017-08-10 18:31

Ok... just found this...

https://bugs.debian.org/cgi-bin/bugrepo ... bug=831007

However, it looks like it was demoted to "wishlist"... I don't understand that... it is pretty huge..
grooveman
 
Posts: 83
Joined: 2009-07-24 23:13

Re: Gnu Tar exclude appears to be broken in Stretch

Postby dasein » 2017-08-10 19:14

grooveman wrote:(timestamp 12:27) I cannot find anything on google about this either.
[snip]
(timestamp 12:31) Ok... just found this...

Amazing how actually going to Google for just a minute or two dramatically changes the landscape and eliminates the need for a forum post, huh? Next time, maybe consider changing the order-of-execution: search first, then post.

grooveman wrote:...it looks like it was demoted to "wishlist"... I don't understand that... it is pretty huge..

Not when there's a workaround.
http://www.gnu.org/software/tar/manual/ ... html#SEC44
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable