Nathan Heagy wrote:
> I'm trying to make an exclusions file in tar, but it isn't working. can
> anyone send me some examples or give me a format to follow? If i put
> /home/nathan/dl/ in the exclusions list, and launch tar from within
> /home/nathan it doesn't exclude dl, and so on.
Didn`t work for me, too.
Try this one:
find etc gast root usr/local var/spool var/named var/lib/rc5 var/cron
home | \
grep -ve ^home\/archive\/pub\/comp | \
grep -ve ^home\/archive\/tmp | \
grep -ve ^usr\/local\/games | \
tar --no-recursion -T - -cIvf - | \
buffer -B -m 16M -p 90 -o /dev/nqft0
man find, man tar and man buffer will answer most questions about the parameters.
Greetings,
Christian