I would like to back up all the directories, etc on a particular partition. The mount point for that partition is /, but that partition does not include all directories that branch off the / directory.
1) How do I assure that all subdirectories and files are included in a tar ball? 2) How do I tar / without including the whole linux installation, but rather only the stuff on /, so that I can restore it after I resize the partition?
Thanks,
Dennis J. Tuchler Professor of Law 3700 Lindell Blvd. St. Louis, Mo. 63108 314-977-2793
From the "--help" of tar:
-l, --one-file-system stay in local file system when creating archive that is: tar czlf /usr/local/tmp/backupofroot.tar.gz / creates the file /usr/local/tmp/backupofroot.tar.gz, and that only contains the contents of /, not of /usr etc. ( I recommend having /tmp as a seperate mountpoint in such case... you don't want to back that up :-) -tosi