Nightly backup using CD-ROM - how do i?
ANISH MISTRY
mistry.7 at osu.edu
Mon Nov 22 07:34:00 PST 2004
----- Original Message -----
From: Odhiambo Washington <wash at wananchi.com>
Date: Monday, November 22, 2004 10:26 am
Subject: Re: Nightly backup using CD-ROM - how do i?
> * Anish Mistry <mistry.7 at osu.edu> [20041111 21:10]: wrote:
> > On Thursday 11 November 2004 11:45 am, you wrote:
> > > * Anish Mistry <mistry.7 at osu.edu> [20041110 03:21]: wrote:
> > >
> > > [snip]
> > >
> > > Hey Anish,
> > >
> > > Thank you so much for your script.
> > >
> > > I am not quite a newbie on Unix, but your script has gotten me
> lost,> > such that I feel like a newbie ;)
> > >
> > > Could you kindly explain to me, step-by-step, how it works,
> please?> >
> > > > #!/bin/sh
> > > > # the date
> > > > DATESTRING=`date +"%Y%m%d"`
> > > > BACKUP_DIR=/usr/local/var/backup
> > > > CD_DEVICE=/dev/acd0c
> > > >
> > Defining the date of the backups to copy, it assumes the
> current. Set the
> > directory where the already tar'ed files are locations, and also
> set the
> > CDROM device.
>
> Now that is where I have another question: I did not see when you
> created any files in $BACKUP_DIR/
> Did you use another script to create the files?
Yes.
>
> [snip]
>
> > > > cd $BACKUP_DIR
> > > > # get previous multisession info
> > > > MSINFO=`/usr/sbin/burncd -f $CD_DEVICE msinfo`
> > > > if [ "$MSINFO" != "" ]
> > > > then
> > > > MULTISESSION="-C $MSINFO -M $CD_DEVICE"
> > > > else
> > > > echo "First session."
> > > > fi
> > Here we probe the CD to get the last session's track info. If
> there is not
> > last session info, then that means that it's a blank cd so we
> don't add
> > the multisession info to the mkisofs command.
>
> So you re-use the CDs sometimes? Does that mean your backups do not
> actually fill a CD? I suppose you are not backing up a whole system
> anyway.
>
> All else is now clear to me.
>
> Thank you again in advance.
>
>
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +======================================================================+
> |\ _,,,---,,_ | Odhiambo Washington
> <wash at wananchi.com>Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online
> Ltd. www.wananchi.com
> |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
> '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
> +======================================================================+
> Death is nature's way of telling you to slow down
>
--
Anish Mistry
More information about the freebsd-questions
mailing list