How To Backup "crontab -e" Files?
Solution 1:
You could just backup the entire /var/spool/cron
directory. It contains all crontabs of all users.
Solution 2:
You can periodically run crontab -l > my_crontab.backup
to backup the crontab into file.
Solution 3:
just backup the file /var/spool/cron/USER_NAME
Solution 4:
I made my backup into a cron job.
0 9 * * * crontab -l | gzip > /backups/'crontab-'$(date +"\%Y\%m\%d-\%H\%M\%S")'.gz'