cancel
Showing results for 
Search instead for 
Did you mean: 

am lost all cron job

Mousa55
Super Advisor

am lost all cron job

Hi,

 

i am lost all cron job of my user security, where i use the crontab -l command nothing appear.

i have backup of my OS (11.31) but i want to restore this file only what is the full path it is required to restore

all cronjobs file. to i can restored

 

Thanks

 

 

1 REPLY
Matti_Kurkela
Honored Contributor

Re: am lost all cron job

The file to restore would be /var/spool/cron/crontabs/<username>.

 

If you restore the file in-place, you have to notify the cron daemon: one easy way might be to run "crontab -e" to edit it and add a single comment line, e.g:

# restored from backup on 2011-10-04 by Mousa55

 

When you save the file, the crontab command will automatically notify the cron daemon to make it re-read the file.

MK