<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type><BASE
href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\">
<STYLE>BODY {
BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Arial; BACKGROUND-POSITION: left top; COLOR: #000000; FONT-SIZE: 10pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY bgColor=#ffffff>
<DIV>I had a little problem recently where a client accidently deleted some
files from their webspace and didn't ask about backups for a few days - not
directly my problem, but raqbackup.sh only keeps a day or two.</DIV>
<DIV> </DIV>
<DIV>I've tweaked raqbackup.sh with some tiny adjustments and thought I'd post
it in case it was useful to anyone else - plus I'll know where to find my own
code in the future :o)</DIV>
<DIV> </DIV>
<DIV>Usual caveats: no guarantees and test it thoroughly before trusting
it. It doesn't do the same level of checking as the full raqbackup.sh
script, but it should be reliable. I've tested it on Neuhaus's standard
script but and Solarspeed's version too. Seems OK, but I suggest testing
and watching to make sure it's all as expected.</DIV>
<DIV> </DIV>
<DIV>Richard.</DIV>
<DIV> </DIV>
<DIV>---</DIV>
<DIV> </DIV>
<DIV>To make raqbackup.sh keep more than two backups:</DIV>
<DIV> </DIV>
<DIV>Take a backup copy of raqbackup.sh and keep it safe.</DIV>
<DIV> </DIV>
<DIV>Edit raqbackup.sh</DIV>
<DIV> </DIV>
<DIV>In function ftptest()</DIV>
<DIV> </DIV>
<DIV>Add the following under $FTPPREPARE1</DIV>
<DIV> </DIV>
<DIV>mkdir $SOURCE.bak2<BR>mkdir $SOURCE.bak1<BR>mkdir $SOURCE.bak0</DIV>
<DIV> </DIV>
<DIV>In the function ftpbackup()</DIV>
<DIV> </DIV>
<DIV>Change the following line which all appear within a few lines of
$FTPPREPARE1</DIV>
<DIV> </DIV>
<DIV>From 'cd $SOURCE.bak' to 'cd $SOURCE.bak2'<BR>From 'rmdir $SOURCE.bak' to
'rmdir $SOURCE.bak2'</DIV>
<DIV> </DIV>
<DIV>Below the new 'rmdir $SOURCE.bak2' line add the following to shuffle the
previous backups along a bit:</DIV>
<DIV> </DIV>
<DIV>rename $SOURCE.bak1 $SOURCE.bak2<BR>rename $SOURCE.bak0
$SOURCE.bak1<BR>rename $SOURCE.bak $SOURCE.bak0</DIV>
<DIV> </DIV>
<DIV>Done, that's now complete and the backup will keep five backups not just
two. If there is lots of storage space this could be extended.</DIV>
<DIV> </DIV>
<DIV><BR> </DIV></BODY></HTML>