Not working...its still trying to archive the stats folder.  And I did a
search online and they came up with a view syntax variations which also
failed.  So I have no idea.

        tar czvf webroot.tar.gz --exclude 'webroot/stats/' webroot
        tar czvf webroot.tar.gz --exclude=webroot/stats/ webroot
        tar czvf webroot.tar.gz --exclude='webroot/stats/' webroot

Anyone ideas?

~ Matthew

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:redhat-list-admin@;redhat.com]
On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, October 26, 2002 5:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Tar Gunzip Question


MET wrote:
> 
> I have a folder called 'webroot'.  Inside of webroot I have 2 dozen 
> folders and some more files.  Simple layout, nothing fancy.  I'd like 
> to archive and compress them all using a shell script which of course 
> would be run through the cron daemon.  I compress as so:
> 
>         tar zcvf webroot.tar.gz webroot
> 
> So how
> would I go about excluding the 'stats' folder from the command?
> 

tar czvf webroot.tar.gz --exclude 'webroot/stats/' webroot



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to