Re: tar a complete drive excluding one directory
From: Radek Kozlowski (radek_at_raadradd.com)
Date: 10/17/04
- Previous message: Radek Kozlowski: "Re: Text-based mail program which handles webmail."
- In reply to: Oliver Fuchs: "tar a complete drive excluding one directory"
- Next in thread: Oliver Fuchs: "Re: tar a complete drive excluding one directory (solved)"
- Reply: Oliver Fuchs: "Re: tar a complete drive excluding one directory (solved)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 17 Oct 2004 16:15:25 +0200 To: Oliver Fuchs <oliverfuchs@onlinehome.de>
On Sun, Oct 17, 2004 at 03:24:45PM +0200, Oliver Fuchs wrote:
> Hi,
>
> I want in FreeBSD RELEASE 5.2.1 tar a complete / system except one directory
> e.g. /mnt where I want to store the tar archive.
> In linux I do:
>
> cd /
> tar cvzf /mnt/root.bak-$(date +%Y%m%d).tar.gz . --exclude=proc --exclude=mnt
>
> Trying this in FreeBSD is not accepted because tar is still trying to tar
> the /mnt directory and the to be made archive.
Try:
# tar --exclude=proc --exclude=proc -cvzf \
/mnt/root.bak-$(date +%Y%m%d).tar.gz .
-Radek
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Radek Kozlowski: "Re: Text-based mail program which handles webmail."
- In reply to: Oliver Fuchs: "tar a complete drive excluding one directory"
- Next in thread: Oliver Fuchs: "Re: tar a complete drive excluding one directory (solved)"
- Reply: Oliver Fuchs: "Re: tar a complete drive excluding one directory (solved)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|