#!/bin/sh -e # Turn my rdiff-backup output directory into a set of files that can be burned # to CD. # Adam Sampson fromdir=/120g4/backups subdirs="home" todir=/120g5/tmp today=`date '+%Y%m%d'` mkdir -p $todir chmod 700 $todir cd $fromdir tar --exclude=rdiff-backup-data --format=posix -cv -f - $subdirs | gzip --best | split --verbose -b702m - $todir/backup$today.tar.gz. cd $todir par a -vv -n1 backup$today.par backup*.gz.*