Ever needed to backup all
of your configuration files
in one fail swoop?
Using an editor create a
file:
vi configlist
Enter the full path of the
files needed to backup.
/etc/passwd
/etc/inetd.conf
/etc/hosts/allow
/etc/hosts.deny
and so on until you have a full list of files.
Save the file and quit
:wq!
Compress the files using tar:
tar cvfzT /tmp/backup.tar.gz configlist
tar: Removing leading `/` from absolute path names in the archive
etc/passwd
etc/inetd.conf
WARNING! This file contains some files that could only be read by a
limited number of users. Store it carefully so only the Administrator can
access it.
Check "man tar" on your flavor,
the "z" and "T" options are
not available on all flavors
of unix.
This tip generously supported by: darren.mallett@tradermedia.co.uk
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.