On Saturday 10 July 2004 09:55 pm, D Golden wrote:
> I've created a tar archive of my entire system, but I want to exclude
> everything in /proc , /usr/ports, and the FILE /usr/backup.tar when
> updating the archive. I've tried:
>
> 1. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc
> --exclude=/usr/ports --exclude=/usr/backup.tar
>
> 2. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc/*
> --exclude=/usr/ports/* --exclude=/usr/backup.tar
>
> 3. cd / && tar -vu -X /root/nodump --file /usr/backup.tar *
>
> and in /root/nodump I have 3 lines:
>
> /proc   # Also tried /proc/*
> /usr/ports  # Also tried /usr/ports/*
> /usr/backup.tar
>
> However, in all three examples, /proc , /usr/ports, and the FILE get
> updated.
>
> What am I missing?
>
> Dana

Here is what I use - hack to suit:
 tar -zcf [EMAIL PROTECTED] +%m%d%y`.tgz 
--exclude-from /usr/home/backups/exclude.txt racerx/

Have all the excludes in the file /exclude.txt
racerx# more exclude.txt 
/usr/home/backups/*
/usr/home/racerx/Desktop/MP3/*
/usr/home/racerx/downloads/*
/usr/home/racerx/dcc/*


>
>
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

-- 
Best regards,
Chris

-- 
This message has been scanned for viruses and dangerous 
content by MailScanner, and is believed to be clean.
ClamAV virus dat updated: Sat Jul 10 2004 at 03:02:53
daily.cvd is up to date (version: 400, sigs: 778, f-level: 2, builder: tkojm)

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to