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

Reply via email to