[BlueOnyx:07943] Re: Incremental backups

Richard Morgan richard at morgan-web.co.uk
Mon Aug 1 17:19:16 -05 2011


Here follows a quick and dirty - no error checking and not very pretty - 
method of keeping a few backups from raqbackup.sh on the local server:

For both Solarspeed and Neuhaus's versions there should be a plugins 
directory in the working directory.

Either: /home/solarspeed/solbackup/server_backup/plugins

Or: /home/raqbackup/plugins

In this location, create a file called start.sh and copy the following in:

WORKDIR="/home/solarspeed/solbackup/server_backup"
rm -fr $WORKDIR/data_5
mv $WORKDIR/data_4 $WORKDIR/data_5
mv $WORKDIR/data_3 $WORKDIR/data_4
mv $WORKDIR/data_2 $WORKDIR/data_3
mv $WORKDIR/data_1 $WORKDIR/data_2
mv $WORKDIR/data $WORKDIR/data_1

The WORKDIR location is correct for Solarspeed, but should be changed for 
Neuhaus: WORKDIR="/home/raqbackup"  (if using some other flavour, just copy 
it from the main raqbackup.sh script - not sure why it's not already set in 
the main script).

Chmod the plugin so it'll run with: chmod 755 start.sh

This will now keep five days plus the current one.  If you want less just 
delete the mv lines that arn't required, then adjust the rm line to remove 
the highest number.

As I said - quick and dirty.  I've tested it on my little test server here, 
but not let it run properly.  I wouldn't trust it blindly but watch it 
carefully for a few days.  It'll also spit out a few errors the first few 
times in runs as I haven't gone to any effort of checking the folders exist 
before deleting or renaming.

Hope it's useful.

Richard


----- Original Message ----- 
From: "Richard Morgan" <richard at morgan-web.co.uk>
To: "BlueOnyx General Mailing List" <blueonyx at mail.blueonyx.it>
Sent: Monday, August 01, 2011 10:48 PM
Subject: [BlueOnyx:07942] Re: Incremental backups


> Answers below...
>
> ----- Original Message ----- 
> From: "Darrell D. Mobley" <dmobley at uhostme.com>
> To: "'BlueOnyx General Mailing List'" <blueonyx at mail.blueonyx.it>
> Sent: Monday, August 01, 2011 10:12 PM
> Subject: [BlueOnyx:07941] Re: Incremental backups
>
>
>>> -----Original Message-----
>>> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
>>> bounces at mail.blueonyx.it] On Behalf Of Ken - Precision Web Hosting, Inc
>>> Sent: Monday, August 01, 2011 3:37 PM
>>> To: BlueOnyx General Mailing List
>>> Subject: [BlueOnyx:07939] Re: Incremental backups
>>>
>>> It seems like small differences in the .tar.gz files generated by
>>> RaqBackup.sh would cause the rsync to re-transfer many of them.  So, I
>>> think
>>> that would mostly negate the transfer savings from using rsync.
>>>
>>> Possibly you could run RaqBackup.sh once  a week.
>>> Then use rsync daily for the complete server files (excluding the
>>> /home/raqbackup/ directory ).
>>
>> I don't trust my clients enough to just back them up once a week, some of
>> them are capable of making a mistake every day. :-)
>>
>> I'll plod along with what I have, although I am thinking of modifying
>> RaqBackup.sh to allow me to keep more than one day ON THE SERVER and have
>> just the two days on remote FTP.  A recent mod someone suggested allowed
>> to
>> save five days to the remote FTP and that's a bit much on the remote
>> storage
>> site.
>
> Since the last postings on a different thread, I've been working on a
> start.sh plugin which will do exactly the same as the offsite version:
>
> Delete backup 3
> Shuffle 2 to 3
> Shuffle 1 to 2
> Shuffle latest to 1
> Leave raqbackup.sh run normally to create a new one (raqbackup will then
> never have to delete anything).
>
> It's work in progress, but I'll look at it now and come up with something
> (don't think it'll be elegant - my scripts never are :o) ).
>
>>
>> I do like SolarSpeed and Compass Networks backup solutions that allow the
>> site admins to perform their own backups in the GUI.  That's pretty nice.
>>
>> _______________________________________________
>> Blueonyx mailing list
>> Blueonyx at mail.blueonyx.it
>> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx 




More information about the Blueonyx mailing list