[KLUG Members] quick tar question

Tony Gettig members@kalamazoolinux.org
Wed, 11 Jul 2001 12:14:21 -0400


Hi there,

I'm doing a lot of testing and potential trashing of a  Linux system and would like to get back to an original running state quickly. So I figured I could just create a tar of the / partition to my /data partition. Here's the command line I'm using (compiled from reading various bits at LDP and other sites):

tar -cplf /data/full.tar --directory / --exclude=proc --exclude=mnt --exclude=*/lost+found .

Partitions on the box are:

/
/home
/data

Is there a better way of accomplishing this? Now that I think about it, I could probably have excluded /home too. TIA for any pointers.


Tony Gettig
Network Administrator
Kalamazoo Public Schools