Last active
March 28, 2019 10:47
-
-
Save aplz/dd645696f84ae499290571ac53f52af7 to your computer and use it in GitHub Desktop.
copy a cronjob config from one server to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy your cron jobs | |
crontab -l > cron.txt | |
# copy the exported config to otherHost | |
scp cron.txt otherHost:/your_directory | |
# login to otherHost | |
ssh otherHost | |
# set the cronjobs to your old config | |
crontab cron.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment