Am not entirely sure how to do this due to my lack of shell knowledge.
NOW=$(date +"%Y.%m.%d.%T")
tar czf /backups/web_backup_$NOW.tgz /web/
Can you please assist me to delete old backups so that it only keeps:
- Last 3 days
- One backup each from last 3 weeks
- One backup each for last 3 months