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: rflo on Jun 24, '05 04:02:41PM
Tiger tar, which is based on gnutar, does include the -L n option. I think n should be 4550000 for a DVD. (File size = n * 1024.) I slapped together a little shell script to set up the backup file names (and to remember the whole sequence for me with an echo reminder).

#!/bin/sh

day=`date "+%y%m%d"`
file= /tmp/backup-$day
cd /

echo "When tar asks for a new volume, use the burn folder feature in the Finder, 
then erase $file/backup.tar before hitting return to restart tar."

mkdir $file
sudo tar -L 4550000 -cvpMzf $file/backup.tar Users usr/local

It should be possible to code some applescript to burn the folders. I'll leave that exercise for whoever has the time.

---
Ronald Florence

[ Reply to This | Parent | # ]

Multi-DVD or (multi-CD) spanning backups with tar
Authored by: tinker on Jun 27, '05 12:51:48PM
Interesting hint!! One question: Could this --
$ cd /
$ sudo xtar --tape-length=4900000 -cvpMf /Users/<differentusername>/Desktop/<cd name>.fpbf Users/<regularusername>/
-- be modified in order to get it to produce a set of one-DVD-sized tarballs in /Users//Archive/, say? That way, I could have it create the tar archives via cron while I sleep every week, and then just burn the DVDs, saving a fair bit of time in the process.

[ Reply to This | Parent | # ]