[BlueOnyx:07954] Re: Incremental backups

Richard Morgan richard at morgan-web.co.uk
Tue Aug 2 04:46:08 -05 2011


----- Original Message ----- 
From: "Darrell D. Mobley" <dmobley at uhostme.com>
To: "'BlueOnyx General Mailing List'" <blueonyx at mail.blueonyx.it>
Sent: Tuesday, August 02, 2011 1:04 AM
Subject: [BlueOnyx:07947] Re: Incremental backups


>> -----Original Message-----
>> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
>> bounces at mail.blueonyx.it] On Behalf Of Richard Morgan
>> Sent: Monday, August 01, 2011 6:19 PM
>> To: BlueOnyx General Mailing List
>> Subject: [BlueOnyx:07943] Re: Incremental backups
>>
>> 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
>>
>> 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.
>
> Won't that keep six days?
>

Yes, but personally I wouldn't count number six because it's deleted when a 
new one is being created so there are only five that can be relied upon.

> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx 




More information about the Blueonyx mailing list