diskbackup-0.0.4
توضیحات
Simple backup tool
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | diskbackup-0.0.4 |
| نام | diskbackup |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joseph Ernest |
| ایمیل نویسنده | nouvellecollection@gmail.com |
| آدرس صفحه اصلی | https://github.com/josephernest/diskbackup |
| آدرس اینترنتی | https://pypi.org/project/diskbackup/ |
| مجوز | MIT |
# diskbackup
**diskbackup** is a very simple backup tool. Main features:
* The directory `dest` will be a clone of `src` (and its subdirectories). New files or modified files will be copied, and files in `dest` which are not in `src` will be removed.
* The backup is incremental: only new or modified files will be copied. `filename` + `file size` + `modification time` are used to do the comparison between source and destination files.
* Supports exclude patterns (case insensitive)
* Follows symbolic links
* Works when the `dest` is a network shared folder (tested on Windows)
* The source code is ~50 lines of code: you don't even need to scroll in your text editor to read the code, it takes only one page ;)
## Installation and usage
You need Python 3.6+, and to do:
pip install diskbackup
(An alternative installation method is to just copy the single file `diskbackup.py` where you want to use it.)
This is how to use it:
from diskbackup import backup
backup(src=r'd:\docs', dest=r'i:\docs')
backup(src=r'd:\docs', dest=r'i:\docs', fake=True) # fake run, no change on destination
backup(src=r'd:\docs', dest=r'i:\docs', exclude=['excluded_dir', '.mp4']) # the src file list will ignore these patterns
backup(src=r'd:\docs', dest=r'i:\docs', exclude=['excluded_dir', '.mp4'], excludefromdest=True) # the src and dest file lists will ignore these patterns
## Author
Joseph Ernest
## License
MIT
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl diskbackup-0.0.4:
pip install diskbackup-0.0.4.whl
نصب پکیج tar.gz diskbackup-0.0.4:
pip install diskbackup-0.0.4.tar.gz