routine to backup a folder recursively, claculatin md5 hash to verify copies.
Project description
folder_backup
Script to back up one or several folders into other folders:
- replicating the source folders structure
- not copying files already in destination (better if
md5=True) - moving (not copying) files already present in the destination path (requires
md5=True) - delete (
delete=True), or not (delete=False) files from destination that are not present in source - copy new files from source into destination verifying the copy (requires
md5=True) - if a file with the same name (full path) already exists in destination, the parameter
if_existschoose how to proceed:- 'stop' will not copy or move the file (skip)
- 'both' will keep both files, adding a numeric suffix to the new file
- 'overwrite' will overwrite the file in destination
It is possible to prepare a simulation of the actions to be done, using the paramenter simulate=True.
This mode only create the report in Excel format, that can be reviewed and later excecuted using the function execute_actions.
Further documentation and examples will come later...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file folder_backup-0.1.6.tar.gz.
File metadata
- Download URL: folder_backup-0.1.6.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b59c7e011cca40398ae281645b3641096858b546a28a269b3608d2f299cec6ef
|
|
| MD5 |
65fa8b521c9ecf6f4883188daaafe796
|
|
| BLAKE2b-256 |
9e7630a7483e5b5d682dd3ea5a1ebbaeeb3ee538f1daac509257e542743973da
|
File details
Details for the file folder_backup-0.1.6-py3-none-any.whl.
File metadata
- Download URL: folder_backup-0.1.6-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a0c1d3dd8b82a0fbfc125aabf362d15c41a8278bbb4a66eca942d5a93691b44
|
|
| MD5 |
7a246510e37b5a2d7f22868f7a8f7334
|
|
| BLAKE2b-256 |
e6a1a34de28f04841d9f916cd2e84ddeedcc49409de8a6cc8429801cd4e2dea9
|