Crontip is a tool used for backup and install of crontab.
You can install crontip by:
pip install crontip
(please use latest pip to install)
-
backup into default destination
crontip -b
orcrontip --backup
will backup the current crontab and save it into the backup_folder.
-
appointe the destination with
-o
crontip -b -o ./this_is_a_backup
save the backup into
./this_is_a_backup
crontip -e
or crontip --edit
The editing process automatically through two steps:
-
copy the latest backup into ready folder
cp backup/latest.bk ready/latest.bk
-
open file with vim
vim ready/latest.bk