[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] tar - don't do filesystem mounts
On Wed, 21 Nov 2001 14:01, you wrote:
> Is it possible to get tar to skip filesystem mounts?
>
> eg, /usr is a filesystem, and I want to tar everything in / except for
> /usr and any other filesystem mounts.
>
> Cheers,
> Jay.
from man tar:
--exclude FILE
exclude file FILE
-X, --exclude-from FILE
exclude files listed in FILE
so,
tar -cfvX /dev/rmt/0h ./excludeList /home/apache /home/jetStream
where exclude list has directors, one per line:
/home/apache/logs
/home/jetStream/data
regards,
--
Greg Kopff
===================================================
gkopff@nospam.powersource.com.au PowerSource Software
Technical Director http://www.powersource.com.au
===================================================
Gentlemen! You can't fight in here, this is the
War Room! - President Merkin Muffley
===================================================
JetStream Dynamic Content Engine(TM)
a dynamic & adaptive content accelerator
http://www.powersource.com.au/jetstream/
===================================================
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.