ispCP - Board - Support
backup server support and incremental backups - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Suggestions (/forum-2.html)
+--- Thread: backup server support and incremental backups (/thread-9137.html)

Pages: 1 2


backup server support and incremental backups - koffu - 01-09-2010 11:13 AM

Hello developers team!

I want to have features from subj, what do you mean about? I can help with it.


RE: backup server support and incremental backups - TheCry - 01-10-2010 07:40 PM

If you have a suggestion, why do you not post it under HOWTO?
http://www.isp-control.net/forum/forum-41.html


RE: backup server support and incremental backups - koffu - 01-10-2010 11:30 PM

I don't post it under HOWTO, because my soulution is not tested well. I will post, when finish testing. Smile


RE: backup server support and incremental backups - TheCry - 01-11-2010 01:01 AM

Then work on it.. Smile
Your suggestion sounds good.


RE: backup server support and incremental backups - Boter - 02-15-2010 07:55 PM

Anything new on this?


RE: backup server support and incremental backups - koffu - 02-15-2010 08:24 PM

(02-15-2010 07:55 PM)Boter Wrote:  Anything new on this?

As example cron script:

Code:
#!/bin/sh
COMPUTER=$1   #pc name as script param
DIRECTORIES="/var/www"  # dirs to backup
BACKUPDIR=/backups                              # where to store
#TIMEDIR=$BACKUPDIR/last-full                   # where to store time of full backup
FULLFN=$BACKUPDIR/$COMPUTER-last_full_date              # last full filename
TAR=/bin/tar                                            # name and locaction of.tar.gz

PATH=/usr/local/bin:/usr/bin:/bin
DOW=`date +%a`
DOM=`date +%d`
DM=`date +%d-%b`

if [ ! -d $BACKUPDIR ]; then
echo "BACKUPDIR $BACKUPDIR does not exist!"
exit 1
fi
if [ ! -d $DIRECTORIES ]; then
echo "DIRECTORIES $DIRECTORIES does not exist!"
exit 1
fi

# Monthly full backup
if [ $DOM = "01" ]; then
        NEWER=""
        $TAR $NEWER -czf $BACKUPDIR/$COMPUTER-$DM.tar.gz $DIRECTORIES
fi

# Weekly full backup
if [ $DOW = "Sun" ]; then
        NEWER=""
#        NOW=`date +%d-%b`

        # Update full backup date
#        echo $NOW > $TIMEDIR/$COMPUTER-full-date
        echo $DM > $FULLFN
        $TAR $NEWER -czf $BACKUPDIR/$COMPUTER-$DOW.tar.gz $DIRECTORIES

# Make incremental backup - overwrite last weeks
else
        #if we will .tar.gzt in the middle of week, hangle cycle correctly
        if [ ! -s $FULLFN ]; then
        NEWER=""
        echo $DM > $FULLFN
        $TAR $NEWER -czf $BACKUPDIR/$COMPUTER-$DOW.tar.gz $DIRECTORIES
        exit 0
        fi

        # Get date of last full backup
        NEWER="--newer `cat $FULLFN`"
        $TAR $NEWER -czf $BACKUPDIR/$COMPUTER-$DOW.tar.gz $DIRECTORIES
fi



RE: backup server support and incremental backups - kilburn - 02-15-2010 08:47 PM

You should link to the source when you're slightly modifying an existant script from a website that nicely explains it's concepts, usage, and pitfalls.

Additionally, I don't think we're going to add any full server backup into ispcp. There are a myriad of readily available tools that you can easily install into your server and will better fit your needs (I use rsnapshot to get centralized rotating backups of all my servers, others use rdiff-backup, etc.).


RE: backup server support and incremental backups - koffu - 02-16-2010 01:21 AM

(02-15-2010 08:47 PM)kilburn Wrote:  You should link to the source when you're slightly modifying an existant script from a website that nicely explains it's concepts, usage, and pitfalls.

Additionally, I don't think we're going to add any full server backup into ispcp. There are a myriad of readily available tools that you can easily install into your server and will better fit your needs (I use rsnapshot to get centralized rotating backups of all my servers, others use rdiff-backup, etc.).

I'm agree with you.


RE: backup server support and incremental backups - RatS - 02-16-2010 09:07 PM

Than I want to add another layer of complexity: make backups manageable. We have to think about who has to pay for the space: the user or the provider.


RE: backup server support and incremental backups - Shin - 02-16-2010 09:15 PM

maybe something like additional limited space (READ ONLY for the user) to store backups