They're stored in the /var/spool/cron/crontabs directory if you're using Vixie Cron, which is the default in Debian. Other crond's might use a different location.
The best way to back up your crontab is with crontab -l > crontab.backup. It can then be restored with crontab crontab.backup. When you do it this way, it's checked for syntax errors and permissions are checked so that only users who are allowed to run cronjobs can do so.
Comments
They're stored in the /var/spool/cron/crontabs directory if you're using Vixie Cron, which is the default in Debian. Other crond's might use a different location.
The best way to back up your crontab is with
crontab -l > crontab.backup. It can then be restored withcrontab crontab.backup. When you do it this way, it's checked for syntax errors and permissions are checked so that only users who are allowed to run cronjobs can do so.Thank you