Hi, I have an entry in my crontab for the root user that is supposed to delete all backups that are older than a week.
crontab -u root -l
30 17 * * * /usr/bin/sudo -u zimbra /opt/zimbra/bin/zmbackup --delete $(date -d "7 days ago" +"%Y/%m/%d")
But it does not work as a cron job. The backups keep piling up until I manually run the command. Any suggestions?