Short exmp

make directory backup

under it put a file exclude.txt which will include all the directory to
exclude
(example next line)

dev
mnt
backup
proc

and then use the -X to use the exclude.txt file

tar cvz -X /backup/exclude.txt -f /backup/xxx.tar.gz" /


Aviram Jenik wrote:

> Hi.
>
> Stupid check-and-the-egg question.
> I want to back up my entire hard-drive to a tgz file using tar. How can I do
> this, without adding the tar to the tar?!
>
> Thanks.
>
> -------------------------
> Aviram Jenik
>
> "Addicted to Chaos"
>
> -------------------------
> Today's quote:
>
> - Real programmers think structured programming is a communist
>   plot.
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

--
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-6-6925757
Fax: 972-6-6925858
http://www.canaan.co.il
--------------------------

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to