On Sun, 2002-03-31 at 20:20, Richard Ibbotson wrote: > > rsync -cavz $src/ $dest/ > > > Thought about this one some more and what I'd like to do is backup > from /home/mydocuments to somewhere like /home/mybackup and then > produce a tape archive and then run cdrecord to drop the whole thing > onto a CD when I'm not around. How about just writing something simple, like: rsync -a /home/mydocuments/ /home/mybackup/ > /dev/null 2>&1 mkdir -p /tmp/backup export FILE=backup-`date +%Y%m%d`.tgz tar -cz /home/mybackup > /tmp/backup/$FILE mkisofs -r -J -o /tmp/backup.iso /tmp/backup # cdrecord -v speed=2 dev=0,1,0 blank=fast cdrecord -v speed=2 dev=0,1,0 -data /tmp/backup.iso rm -rf /tmp/backup /tmp/backup.iso That will create your on-disk mirror, and compress the mirror to a date-stamped file (i.e., backup-20020329.tgz). That file is then popped on an ISO filesystem and written to CD. If you need to blank the CD first (i.e., it's a CD-RW), then uncomment the first cdrecord command. Any good? :) Cheers, Alex.
Attachment:
signature.asc
Description: This is a digitally signed message part