Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 21:10:31 +0200
From:      =?iso-8859-1?Q?Philipp_Gasch=FCtz?= <pg@philipp.de.com>
To:        "Erin Fortenberry" <efortenb@sdccd.cc.ca.us>, <questions@freebsd.org>
Subject:   AW: tar - need to excluding directories
Message-ID:  <BOELLCONIBKCLEHPNCDDKEDMCOAA.pg@philipp.de.com>
In-Reply-To: <BBDEEDD2EB67D311A0240008C74B9345129C3F@ntxmidcity.sdccd.cc.ca.us>

next in thread | previous in thread | raw e-mail | index | archive | help
...yes it will! one file/dir per line


--------
bash# cat /usr/local/etc/backup.exclude 
/tmp
/dev
/proc
/mnt
/lost+found
bash#
--------

/usr/bin/tar -cpPf /dev/nsa0 -X /usr/local/etc/backup.exclude /




/pg




> 
> I need to tarball everything from the root but I need to exclude my
> /home/backup directory. I looked through the man pages and found;
> 
> -X file
> --exclude-from file     Exclude files listed in file.
> 
> Does anyone know if this will exclude that directory and all of its
> subdirectories?
> 
> 
> Thanks,
> 
> Erin
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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