ftocc

back up to a CD ROM or DVD ROM

rrichiez
Posts: 296
Member Since:
2006-12-07

Is there any way to backup the backups on to a CD Automaticly. like in the backup feature?

rrichiez



percykwong
Posts: 753
Member Since:
2007-04-30
yes, it's doable with a

yes, it's doable with a cronjob. Install mkisofs and cdrecord, then create a script somewhere and paste the following in. change it to +755 permissions and execute the cron job as root daily or at whatever frequency you wanna do it.

edit crontab with the 'crontab -e' command. Oh yeah.. don't forget to change the CD every day.

Cheers.

#!/bin/sh
mkisofs -V LABEL -r <whatever you wanna backup directory> | gzip > cdrom.iso.gz
gzip -dc cdrom.iso.gz | cdrecord -v dev=/dev/cdrom -
--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



jahyde
Posts: 1988
Member Since:
2006-06-02
thing called the

thing called the wiki-
http://trixbox.org/wiki/Additional_Scripts_and_Tricks

something in there that does a bit more.

--

--my PBX is run on 2 V8's



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.