[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

tar on flash drive



I have a damaged system on my laptop and am trying to salvage data, then will likely install a new system (etch or lenny, was sarge). I'd like to save the home folder and a few useful files gleaned from the etc folder, keeping permissions. I'll use a live cd to do the salvage work (lenny live, knoppix, knoppix STD or slax -- I have all available) and write to a 4GB usb flash drive. 

Is this the proper syntax? I believe the -c must be first and the -f last.

tar -chpvf /mnt/sda1/homebackup.tar /mnt/hda2/home

-c is create a new archive
-h is retain symlinks but not the files to which they point
-p is preserve permissions
-v is verbose
-f is indicating that the destination file name follows immediately after

Is -h the best way to handle symlinks?
Is having the destination file on a flash drive a potential problem? 

On my older desktop machine running sarge drag and drop with the flash drive in K3b doesn't work well and it loaths umounting the flash drive. Sarge on the hard drive was occasionally problematic, too. Slax lists my partitions on the console as /mnt/sda1 (or /media/sda1 -- the flash drive) and /mnt/hda2 (or /media/hda2 -- it's the partition with the problem). 

Your input is appreciated. Please cc me as I am not currently subcribed to the list.

-- postid


Reply to: