Topic: crontab -r disaster

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 6
- Related log if you're reporting an issue:

Hello to all!

Today i had to modify the root crontab with the command crontab -e _BUT_ the insidious r tricked me and now i deleted the entire file.

I have a recent backup with duply but i don't know what file i have to restore.

Alternatively can someone post me the default crontab? The one with the mysql backup script.

Thank you very much!


Re: crontab -r disaster

On Debian/Ubuntu, Cron jobs are stored under /var/spool/cron/crontabs/. For root user, you can check file '/var/spool/cron/crontabs/root'.


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: crontab -r disaster

Thank you! I was able to restore the file from the backup.

I was tricked by the darn -r flag which removed the file so i thought "root" was memorized elsewhere.

It seems that the only iredmail "default" command was the mysql backup.

Thank you again!