Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2004 15:24:45 +0200
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions@freebsd.org
Subject:   tar a complete drive excluding one directory
Message-ID:  <20041017132420.GA1896@oliverfuchs.ath.cx>

next in thread | raw e-mail | index | archive | help
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.

What I am doing wrong?

Oliver
-- 
... don't touch the bang bang fruit



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041017132420.GA1896>