[NTLUG:Discuss] tar problem
Hanna, Mark
Mark.Hanna at FMR.com
Sat Jul 24 17:36:16 CDT 2004
Hiya Ralph,
change the -A to a -r
subtle but the -A means to append other tar files to the end of an
archive
M
-----Original Message-----
From: Ralph Green, Jr [mailto:severian at mail.joimail.com]
Sent: Saturday, July 24, 2004 4:31 PM
To: NTLUG Discussion List
Subject: [NTLUG:Discuss] tar problem
Howdy,
I am having a problem with tar that is probably just my
misunderstanding of how it works. I want to tar up two different
directories, in different parts of a backup script. There is a -A
option which says it will append to an existing archive. So, I create
the archive with the first tar command and then add to it. The
resulting tar archive is bad. A transcript of a simply test is shown
below. The files listed in the archive are all from the first
directory. The error is where the files from the second directory would
show up. Any ideas?
Thanks,
Ralph
rgreen at marianne:~/logprocess> cd ../filters
rgreen at marianne:~/filters> tar -cf /home/rgreen/test.tar *
rgreen at marianne:~/filters> cd ../bpp
rgreen at marianne:~/bpp> tar -Af /home/rgreen/test.tar *
rgreen at marianne:~/bpp> cd ..
rgreen at marianne:~> tar -tvf test.tar
-rwx--x--x rgreen/users 80 2004-07-19 14:56:09 build_f2.sh
-rw------- rgreen/users 14240929 2004-06-25 20:02:34 ccbox.sql
-rw-r--r-- rgreen/users 3281 2004-06-28 22:14:30 defs.h
-rw-r--r-- rgreen/users 2926 2004-06-25 21:00:48 f1.c
-rwxr-xr-x rgreen/users 17577 2004-07-19 16:30:36 f2
-rw-r--r-- rgreen/users 5684 2004-07-19 16:45:50 f2.c
-rwxr-xr-x rgreen/users 28887 2004-07-06 15:56:32 fsx
-rw-r--r-- rgreen/users 26323 2004-07-06 15:55:47 fsx.c
-rw------- rgreen/users 180831 2004-06-25 18:47:35 por
-rw------- rgreen/users 289263 2004-06-25 20:44:33 port.sql
-rwxr-xr-x rgreen/users 9172 2004-07-08 18:11:48 seconds
-rw-r--r-- rgreen/users 1388 2004-07-08 18:11:42 seconds.c
-rwxr-xr-x rgreen/users 8541 2004-07-14 01:27:24 t01
-rw-r--r-- rgreen/users 312 2004-07-14 01:27:11 t01.c
-rw-r--r-- rgreen/users 534 2004-06-28 22:18:39 test1.c
-rw------- rgreen/users 6252 2004-07-19 15:21:43 UserBackup
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors
_______________________________________________
https://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list