maxi said:Cfn you add an ability to add job to delete automaticaly old backups(by some parameters). It will be very useful, because sometimes there are many backups on second hard drive(daily backups) and it is full.... )
#!/bin/bash
rm -f /backup/DirectAdmin/latest
ln -s /backup/DirectAdmin/`date +%m-%d-%y` /backup/DirectAdmin/latest
echo "rm -rf /backup/DirectAdmin/`date -d "3 weeks ago" +%m-%d-%y`" >> deleted.txt
if [ `date +%d` -ne 3 ]
then
rm -rf /backup/DirectAdmin/`date -d "3 days ago" +%m-%d-%y`
fi