Click to See Complete Forum and Search --> : Backing up with a CDR


gmoreno
12-23-2000, 02:43 PM
What would be the command to backup my home directory onto a cd? Or what software will allow me to do this.

cs25x
12-23-2000, 03:16 PM
If your home is less than 640M, then drop it all onto cd, mkisofs and cdrecord

You have to be root to burn a cd.

HOME="/home/foo"
DEV="-dev=0,0,0"
SPEED="-speed=12"
BUFFER="-fs=64000000"
mkisofs -r $HOME >/tmp/iso
cdrecord $DEV $SPEED $BUFFER /tmp/iso
rm /tmp/iso
echo -e -n \\a
sleep 1
echo -e -n \\a

Put that into a file, make it exec (chmod +x foo) and change the device - home - - speed - buffer size to suit.
It "may" require a heap of hard drive for the iso, depends on how big your home is.

wait for two beeps and you have your backup.

0000000000000000000000000000

gmoreno
12-23-2000, 03:29 PM
Perfect just what I was looking for. Let me give her a spin.