Hi yelnic,
I edited the script thats been linked to a few months ago and I use it to backup to DVD daily.
cd etc/cron.daily
pico backupdvd
Here is the code (edit it as you need too)
#!/bin/sh
Backup_Dirs="/home/e-smith/files"
Backup_Dest_Dir=/tmp/backup
Backup_Date=`date +%b%d%Y`
# Create tar file with todays Month Day Year prepended for easy identification
tar -cvzf $Backup_Dest_Dir/$Backup_Date.tar.gz $Backup_Dirs
#Burn the DVD
growisofs -dvd-compat -Z /dev/dvd $Backup_Dest_Dir/$Backup_Date.tar.gz
eject
echo "Removing : $Backup_Dest_Dir/$Backup_Date.tar.gz"
rm $Backup_Dest_Dir/$Backup_Date.tar.gz
echo "END BACKUP $Backup_Date"
echo "A new backup has been completed. Please replace the DVD with todays and put the old one into the white folder" | mail reminder@domain.com
echo "------------------------------------------------------------------------"
exit 0
Oh, I think I need to create a backup folder in the temp directory as well.
I use a set of DVD-RW's and just rotate each day. That wipes them and re-burns them with this script.
If you want to change what you backup change the Backup_Dir.
Good luck,
M.