Current time: 11-14-2024, 04:52 PM Hello There, Guest! (LoginRegister)


Post Reply 
backup server support and incremental backups
Author Message
koffu Offline
Junior Member
*

Posts: 80
Joined: Jan 2010
Reputation: 1
Post: #1
backup server support and incremental backups
Hello developers team!

I want to have features from subj, what do you mean about? I can help with it.
01-09-2010 11:13 AM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #2
RE: backup server support and incremental backups
If you have a suggestion, why do you not post it under HOWTO?
http://www.isp-control.net/forum/forum-41.html
01-10-2010 07:40 PM
Find all posts by this user Quote this message in a reply
koffu Offline
Junior Member
*

Posts: 80
Joined: Jan 2010
Reputation: 1
Post: #3
RE: backup server support and incremental backups
I don't post it under HOWTO, because my soulution is not tested well. I will post, when finish testing. Smile
01-10-2010 11:30 PM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #4
RE: backup server support and incremental backups
Then work on it.. Smile
Your suggestion sounds good.
01-11-2010 01:01 AM
Find all posts by this user Quote this message in a reply
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #5
RE: backup server support and incremental backups
Anything new on this?
02-15-2010 07:55 PM
Find all posts by this user Quote this message in a reply
koffu Offline
Junior Member
*

Posts: 80
Joined: Jan 2010
Reputation: 1
Post: #6
RE: backup server support and incremental backups
(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
02-15-2010 08:24 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: backup server support and incremental backups
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.).
02-15-2010 08:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
koffu Offline
Junior Member
*

Posts: 80
Joined: Jan 2010
Reputation: 1
Post: #8
RE: backup server support and incremental backups
(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.
02-16-2010 01:21 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #9
RE: backup server support and incremental backups
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.
02-16-2010 09:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Shin Offline
Development Team - Junior
*****
Dev Team

Posts: 162
Joined: Oct 2006
Reputation: 0
Post: #10
RE: backup server support and incremental backups
maybe something like additional limited space (READ ONLY for the user) to store backups
(This post was last modified: 02-16-2010 09:18 PM by Shin.)
02-16-2010 09:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)