you can tar and gzip at the same time. tar archives the link itself rather than the thing it points to, so when you untar, you will get the same link back.
tar cvzf /backup_dir/`date +%F`-backup.tgz ~/
the 'z' in the option list tells tar to gzip also. Alternatively, you could use j to bzip2 (often better compression than gzip, but slower to de/compress), in that case, name the file whatever.tbz for clarity. tar has other options if you're still having problems, namely "--exclude" to just not deal with the problem files all together, though this shouldn't be an issue in your case.
Last edited by BrianK; 03-25-2008 at 08:01 PM.
|