Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: yelnic on October 19, 2007, 11:39:54 PM

Title: DVD backups
Post by: yelnic on October 19, 2007, 11:39:54 PM
I have searched and searched, but I can't find any DVD backups for version 7.x.  Am I missing something?  Any help will be greatly appreciated.

yelnic
Title: Re: DVD backups
Post by: byte on October 20, 2007, 12:00:53 AM
Moved to contribs section as it is more appropriate here.
Title: Re: DVD backups
Post by: byte on October 20, 2007, 12:04:42 AM
[..]but I can't find any DVD backups for version 7.x.

The is no such back up tool available for SME Server 7.x but there are a few good contribs that will do backups for you search "dar" also I think one of the contribs offered to split the file size to fit a DVD, I'm not too sure as I don't use them, so someone else who does may offer more direct advice on that.
Title: Re: DVD backups
Post by: crazybob on October 20, 2007, 12:13:52 AM
How much data are you trying to backup?
I am using the script from this thread http://forums.contribs.org/index.php?topic=34931.0 to back up to CD, but I don't think the modification to go to DVD would be too bad. You need to keep an eye on file size.

Bob
Title: Re: DVD backups
Post by: yelnic on October 20, 2007, 05:21:54 AM
How much data are you trying to backup?

About 3gb.

I am using the script from this thread http://forums.contribs.org/index.php?topic=34931.0 to back up to CD, but I don't think the modification to go to DVD would be too bad. You need to keep an eye on file size.

I don't know where to begin to modify the script.  Any ideas?

Thanks,
yelnic
Title: Re: DVD backups
Post by: dmay on October 20, 2007, 04:52:25 PM
I have searched and searched, but I can't find any DVD backups for version 7.x.  Am I missing something?  Any help will be greatly appreciated.

yelnic

Personally I would use smeserver-dar to backup to a workstation hard drive. Then connect the DVD writer to the workstation and simply copy the resulting archive files onto DVD(s) when convenient to do so.

Darrell
Title: Re: DVD backups
Post by: sparticus on November 05, 2007, 04:04:33 AM
Hi yelnic,
I edited the script thats been linked to a few months ago and I use it to backup to DVD daily.

Code: [Select]
cd etc/cron.daily
Code: [Select]
pico backupdvd
Here is the code (edit it as you need too)

Code: [Select]
#!/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.