[wellylug] backup Tar howto

Tony Booth Tony.Booth at treasury.govt.nz
Mon Sep 15 09:59:04 NZST 2003


Have you tried using the exclude option?

--exclude FILE
	      exclude file FILE

-X, --exclude-from FILE
	      exclude files listed in FILE

If that doesn't work, find . ! -type d dirname ... or some variation
should give you a list of files not in the directory you want excluded,
which you can then pass to tar.

There may be better ways of doing this, but not known to this newbie.

Cheers
Tony

-----Original Message-----
From: Edouard Chalaron [mailto:e.chalaron at paradise.net.nz] 
Sent: Monday, 15 September 2003 9:55 a.m.
To: Wellylug
Subject: [wellylug] backup Tar howto


Hi there

I need to tar a complete box. ....well almost all in fact.
Is there a way I can do

Tar -tvf  archive.tar /  /but_these_directory

Thanks

-- 
Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz To
Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug



More information about the wellylug mailing list