RE: [PHP] a bit OT
| From: | Jason | Date: | Wed, 12 Jul 2000 20:35:09 +0000 |
| Subject: | RE: [PHP] a bit OT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6255@lists.php.net to get a copy of this message | ||
Berber,
Have you tried using the --exclude switch? You might try something like
this: --exclude=/path/to/exclude_dir/*
Jason
> I'm using tar and gz to backup my file daily with a php script.
>
> I'm using :
>
> system("/usr/sbin/tar cvf - /user/berber/web | /usr/local/bin/gzip >
> /user/berber/backup/Web." . $date . ".tar.gz");
>
> I want to exclude a sub directory from under /user/berber/web and
> whatever i
> do
> I can't get the syntax correct.
>
> any ideas?
>
> Sincerely
>
> berber
_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net