TAR Problem with a directory with a "*" in it's name.

From: George Gallen <ggallen_at_slackinc.com>
Date: Mon, 01 Feb 1999 12:07:49 -0500

lately we tried to restore a file from our tar tape.

Usually we would just enter:

tar xvf /dev/rmnt0a "./data1/ACCT/COA*TEST"

But the above (which is in reality a directory)
only restored the directory entry, it did not
go and restore the contents of the directory.

Now if we subsituted another name without the "*"
it would restore both the directory and it's contents.

We tried:

tar xvf /dev/rmnt0a "./data1/ACCT/COA\*TEST"

This did the same as the above. I was hoping that
the backslash would cancel the wildcard functionality
of the "*" and use it as a character.

What we finally had to do was restore with a:

tar xvf /dev/rmnt0a "./data1/ACCT"

This restored the ENTIRE account (directory with all
files at this point restored), now we were ablt to
copy out the COA*TEST file.

For future use (aside from don't use filenames with "*"'s)
how would we restore that file without having to resort
to restoring the whole upper structure?

George Gallen
ggallen_at_slackinc.com
Received on Mon Feb 01 1999 - 17:07:15 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT