<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-signature">Yes you can add these two files end.sh
and start.sh in the
/home/solarspeed/solbackup/server_backup/plugins/<br>
<br>
end.sh<br>
#!/bin/sh<br>
<br>
WORKDIR=/home/solarspeed/solbackup/server_backup/data<br>
TODAY="$WORKDIR-$(date +%F-%A)"<br>
YESTERDAY="$WORKDIR-$(date --date='yesterday' +%F-%A)"<br>
<br>
mv $WORKDIR $TODAY<br>
<br>
for myfile in $YESTERDAY/*<br>
do<br>
cmp $TODAY/${myfile##*/} $YESTERDAY/${myfile##*/} &>
/dev/null<br>
if [ $? -eq 0 ] # Test exit status of "cmp" command.<br>
then<br>
ln -s -f $TODAY/${myfile##*/} $YESTERDAY/${myfile##*/}<br>
fi<br>
done<br>
<br>
start.sh<br>
#!/bin/sh<br>
<br>
WORKDIR=/home/solarspeed/solbackup/server_backup/data<br>
TOBEREMOVED="$WORKDIR-$(date --date='7 days ago' +%F-%A)"<br>
rm -rf $TOBEREMOVED<br>
<br>
-- <br>
<style type="text/css">
<!--
.style1 {color: #006600}
-->
</style>
<p><em><strong>Richard C. Barker Sr. <br>
CEO & President <br>
1-813-873-8942 <br>
<span class="style1">ProBass Networks Inc. </span></strong></em><br>
<a href="http://www.probassnetworks.net">www.probassnetworks.net</a>
<br>
<a href="http://www.probass.net">www.probass.net</a> <br>
*************************************** <br>
DISCLAIMER : - <br>
This e-mail is confidential and intended only for the use <br>
of the individual or entity named above and may contain <br>
information that is privileged. If you are not the intended <br>
recipient, you are notified that any dissemination, distribution
<br>
or copying of this e-mail is strictly prohibited. If you have <br>
received this email in error, please notify us immediately <br>
by return email or telephone and destroy the original message. <br>
</p>
</div>
</body>
</html>