Skip to main content

Backup, edit and install crontab

Project description

Crontip

Crontip is a tool uesd for backup and install of crontab.

Installation

You can install crontip by: pip install crontip (please use latest pip to install)

Layout

crontip
|- crontip.py
|- config.yaml
|- backup # store the backup of crontab
|- ready # store the crontab that ready to be install

Usage

Backup the Current Crontab

  1. backup into default destination

    crontip -b or crontip --backup

    will backup the current crontab and save it into the backup_folder.

  2. appointe the destination with -o

    crontip -b -o ./this_is_a_backup

    save the backup into ./this_is_a_backup

Edit the Prepared Copy of Backup

crontip -e or crontip --edit

The editing process automatically through two steps:

  1. copy the latest backup into ready folder cp backup/latest.bk ready/latest.bk

  2. open file with vim vim ready/latest.bk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crontip-0.0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

crontip-0.0.3-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page