diskbackup
diskbackup is a very simple backup tool. Main features:
-
The directory
destwill be a clone ofsrc(and its subdirectories). New files or modified files will be copied, and files indestwhich are not insrcwill be removed. -
The backup is incremental: only new or modified files will be copied.
filename+file size+modification timeare used to do the comparison between source and destination files. -
Supports exclude patterns (case insensitive)
-
Follows symbolic links
-
Works when the
destis 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
Metadata
Release files for diskbackup 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diskbackup-0.0.4.tar.gz | 3.4 kB | Without provenance | Details for diskbackup-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diskbackup-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for diskbackup-0.0.4-py3-none-any.whl |
Total release size: 7.3 kB
Release files / diskbackup-0.0.4.tar.gz
| Download URL | diskbackup-0.0.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f41be9971d7744430c3e7e5daf534da2aad9603d6e4e94edb83d390106d4683f
|
|
BLAKE2b-256 checksum How to use checksums |
4934d15a740365ef60d20a2c5165e2df81744d9827b6d59d24160d6e52ae13c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
|
Release files / diskbackup-0.0.4-py3-none-any.whl
| Download URL | diskbackup-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d914dd164f7be41fe41ab9cfd55c2a556d944667a1881709c0a44708cf5754a
|
|
BLAKE2b-256 checksum How to use checksums |
9aea1cc8aebddc526d1e463b4f8af81780593910853123452816fa04f714a623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
|
Security for diskbackup 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.