crontab -e load a file into
before i leave for work I often make a copy of my crontab file
crontab -l > /home/casper/backup`date +%Y%m%d when the crontab gets corrupted or someone changes it - i reload the backup - usually by opening up the crontab with crontab -e, then opening up the backupYYYYmmdd file in a text editor and cutting and pasting the backup contents into crontab -e just wondering - is there a quicker way. I tired crontab -e < /home/casper/backup20100723 but it does not work. |
man crontab
Code:
crontab /home/casper/backup20100723 |
All times are GMT -5. The time now is 04:35 PM. |