Skip to content

Instantly share code, notes, and snippets.

@aplz
Last active March 28, 2019 10:47
Show Gist options
  • Save aplz/dd645696f84ae499290571ac53f52af7 to your computer and use it in GitHub Desktop.
Save aplz/dd645696f84ae499290571ac53f52af7 to your computer and use it in GitHub Desktop.
copy a cronjob config from one server to another
# 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