[thelist] Linux Tar Question
Dean Mah
dsmah at home.com
Tue Jan 9 11:16:27 CST 2001
Are you sure that this didn't work? Do a 'tar tf' on your file. The
two messages look like warnings. The first is telling you that tar
stripped off the leading / and the second is telling you that while
tar'ing everything together, it found the file test.tar and realize
that it was the tar archive itself so skipped it.
Dean
CDitty writes:
> I am writing a small php script to create a backup of my web server. Can
> anyone tell me a way (if possible) to exclude directories using tar? I
> have tried using the following commands, but they give errors.
>
> tar -cf --exclude=stats /home/httpd/html/galore/test.tar
> /home/httpd/html/galore/
> tar --exclude=stats -cf /home/httpd/html/galore/test.tar
> /home/httpd/html/galore/
>
> This is the error I get.
> tar: Removing leading `/' from member names
> tar: /home/httpd/html/galore/test.tar: file is the archive; not dumped
More information about the thelist
mailing list