Use this with cron to auto backup every 2 hours (tar cpzf /backup/$(date +%Y%m%d-%H).tar.gz /servers). how can i make it delete after 5 days (so the 60 lastest folders will always be there)? any help is appreciated.
[link][19 comments]
Use this with cron to auto backup every 2 hours (tar cpzf /backup/$(date +%Y%m%d-%H).tar.gz /servers). how can i make it delete after 5 days (so the 60 lastest folders will always be there)? any help is appreciated.