Plugin for dotbot to edit and sync crontab without deleting or editing manual added cronjob, only manage dotbot cron.
- Add
crontab-dotbotas a submodule of your dotfiles repository.
git submodule add https://github.com/fundor333/crontab-dotbot.git- Modify your
installscript to enable thecrontab-dotbotplugin.
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir crontab-dotbot -c "${CONFIG}" "${@}"The plugin adds one directive use with crontab with two keyword:
cron: The crontab regexcommand: The command to run For example:
- crontab:
- cron: 0 * * * *
command: echo "Hello world"