↧
Answer by Omer Dagan for Export crontab to a file
Create the backup (export): crontab -l > /some/shared/location/crontab.bak Import it from the new user: crontab /some/shared/location/crontab.bak
View ArticleExport crontab to a file
How can I export the contents of the crontab to a file? I need it because I'm switching usernames and do not want to lose the data in the crontab.
View ArticleAnswer by Michelle for Export crontab to a file
To add some more cool commands for backuping and restoring crontab. Might be useful.Backup periodically current cron with cron :)0 9 * * * crontab -l | gzip > /backups/'crontab-'$(date...
View Article