crontip-0.0.3
توضیحات
Backup, edit and install crontab
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | crontip-0.0.3 |
| نام | crontip |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | shangcode |
| ایمیل نویسنده | shangcode@aliyun.com |
| آدرس صفحه اصلی | https://github.com/shangcode/crontip |
| آدرس اینترنتی | https://pypi.org/project/crontip/ |
| مجوز | CLA |
# 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
```plain
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`
نحوه نصب
نصب پکیج whl crontip-0.0.3:
pip install crontip-0.0.3.whl
نصب پکیج tar.gz crontip-0.0.3:
pip install crontip-0.0.3.tar.gz