Quantcast
Channel: Export crontab to a file - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Export 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 Article

Answer 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
Browsing latest articles
Browse All 3 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>