Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Multi-DVD or (multi-CD) spanning backups with tar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Multi-DVD or (multi-CD) spanning backups with tar
Authored by: E5o on Jun 24, '05 02:44:31PM
Indeed, I never did trust either of the "tars". I would like to just chime in with a tool with which I have had a successful relationship for over two years now. It's hfspax, a modified version of the standard pax-utility to take on resource-forks properly. To make a multipart backupfile you coud say something like this:
hfspax -wvf /Volumes/<your_backup_destination>/backupfile -x cpio -B 4500M /backupdirectory
-w
=write out mode
-v
=verbose mode
-f
=specifying the backupfile, because OSX does not support tape
-x
=write the files in cpio-format. You can also choose from other formats, it' just my own preference And now for the important part
-B
=specifies the backupfile size. You can choose: M(egabytes), K(ilobyes) When your backupfile reaches 4500Megabytes, you're prompted to give the new file a name. You must give it the same path as the first file, give it a logic name: First file : /Volumes//backupfile_1 Second file : /Volumes//backupfile_2 You get the idea. To restore: use
cat backupfile_1 backupfile_2 > new_file
then:
hfspax -rvf <new_file> -pe -k 
This will restore it all back to its former glory, resourceforks and all. New this time is:
-r
=read in mode
-pe
="preserve everything" - file permissions, mod.times, etc
-k
=Normally hfspax overwrites everything in its way, this option make hfspax not overwrite existing files. There are tons of other useful options, so go explore. Cheers E5o

[ Reply to This | # ]
Multi-DVD or (multi-CD) spanning backups with tar
Authored by: ruaric on Jul 12, '05 06:32:02AM

Interesting. Rather than combining the parts back together prior to the restore can hfspax prompt for each new part in the way that tar does? I wouldn't have the space to copy all the parts to my hard disk and cat them together prior to extraction.



[ Reply to This | # ]
Multi-DVD or (multi-CD) spanning backups with tar
Authored by: E5o on Jul 12, '05 03:55:56PM
I think so, yes. hfspax will prompt you for the new filename when appropriate. Remember to type in the complete path, not just the filename, when hfspax ask your for the next filename. e.g. filename:
 my_backupfile
full path:
/Users/your_home/my_backupfile
or whatever place you prefer, obviously. Cheers E5o

[ Reply to This | # ]
Resource forks do not appear to be restored with hfspax under Panther.
Authored by: ruaric on Aug 20, '06 06:02:41AM

Running the latest available version of hfspax (hfspax1fc4.tar.gz) under Panther 10.3.9 I have had no luck retaining resource forks. I can see that hfspax attempts to back them up but on restore they are missing. I'll stick with xtar, which has not resulted in any problems.



[ Reply to This | # ]