silly cron question
how can i include the contents of my crontab into a backup run from a users $HOME directory? in other words i use cron to schedule backups (typically rsync) between server, i would also like to backup the cron entries so i dont have to rebuild them if the Live server goes down.
thanks. |
What about adding this at the beginning of your backup script:
Code:
crontab -l > cron_backup |
thank you, to simple :D.
|
All times are GMT -5. The time now is 10:32 AM. |