Hi all,
Pretty new to CRON but have been messing with Ubuntu for a while now
Here is the situation/problem I have run into you.
I currently run a very basic back procedure by executing a daily CRON job which copies all data from one directory to a USB drive & date stamps the copy:-
cp -r /var/ /media/USB$(date +/%F)
Which has been working prefectly well, however when I checked it last I realised the USB drive had filled up & there was no space to continue the backup.
Is there an easy way to check the date & overwrite the oldest copy, therfore never filling the drive up so the backup will always be successful.
Thanks for looking
2scoops