Amanda-Users

Re: amdump issues involving wildcards--quoted wildcards appear to be sent to, and thus being interpreted literally by, gtar

2006-11-07 19:07:55
Subject: Re: amdump issues involving wildcards--quoted wildcards appear to be sent to, and thus being interpreted literally by, gtar
From: "Ian R. Justman" <ianj AT ian-justman DOT com>
To: Mitch Collinsworth <mitch AT ccmr.cornell DOT edu>
Date: Tue, 07 Nov 2006 15:52:33 -0800
Mitch Collinsworth wrote:

On Thu, 2 Nov 2006, Ian R. Justman wrote:

My conjecture of what's happening is that the gtar command is being run with quotes around the items in the "include" statement in my disklist file, causing gtar to not perform any globbing and, instead, look for any pathname with actual brackets and globbing characters in it.

Have a look in /tmp/amanda/sendbackup.xxx.debug.  That should show you
what the command line arguments being used look like.

-Mitch

Sorry for taking so long to reply since things've been pretty hectic around here.

Anyway, what originally started this was this thread on marc.theaimsgroup.com:

http://marc.theaimsgroup.com/?l=amanda-users&m=108514231301508&w=2
and the thread that ensues

Here's what I get when I look at the appropriate files affecting one of those backups:

# less runtar.20061107001110.debug
runtar: debug 1 pid 7776 ruid 30 euid 0: start at Tue Nov  7 00:11:10 2006
gtar: version 2.5.0p2
running: /usr/local/bin/gtar: gtar --create --file - --directory /var/spool/PO/mailbox --one-file-system --listed-incremental/usr/local/var/amanda/gnutar-lists /trillian_var_spool_PO_mailbox_0-99_1.new --sparse --ignore-failed-read --totals --exclude-from /tmp/amanda/sendbackup._var_spool_PO_mailbox_0-99.20061107001110 .exclude --files-from /tmp/amanda/sendbackup._var_spool_PO_mailbox_0-99.20061107001110.include
runtar: pid 7776 finish time Tue Nov  7 00:11:11 2006

# less /tmp/amanda/sendbackup._var_spool_PO_mailbox_0-99.20061107001110.include
./[0-9]/
./[1-9][0-9]/

This begs the question: Can a file as designated by --files-from contain wildcards? Apparently, they cannot. Apparently GNU Tar is looking for directories with literal names beginning with ./[0-9]/ and ./[0-9][0-9]/ rather than globbing them to ./0/, ./1/, [...], ./9/, ./10/, ./11/, [...], ./98/, and ./99/

At first glance, GNU tar's documentation appears to say I cannot.

What it all boils down to is this looks less and less like an AMANDA problem and more and more like a GNU tar problem.

Not having wildcard/globbing like this is not very helpful if I have a large number of directories here (in this case, 500 of them) and enumerating them 100 individually at a time is an extreme nuisance. If anything else, I'd love to know if I'm doing something wrong. Though if worst comes to worse, I have some ideas based on the distribution copy of disklist of what I can do in lieu of any wildcards should I be required to, yet keep my disklist looking reasonably neat and easy to manage.

Thanks in advance for any tips.

--Ian.


<Prev in Thread] Current Thread [Next in Thread>