crontab entry to delete old files/folders error I am trying to automate the delete of a backup directory that is 14 days oldthis is the crontab entry I am trying.find /backup_to_disk/some_dir/ -depth -mtime +14 -exec sh -c 'test -d "$1" && rmdir "$1" || rm "$1"' {}...
When collecting cron data it’s important make sure you dump both the user’s crontab and the root user’s crontab in case an attacker has managed to get root privileges. crontab -l sudo crontab -l Crontabs are nothing more than files stored in plain text. So a more thorough and robust...