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_exists
choose 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
folder_backup-0.1.6.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for folder_backup-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0c1d3dd8b82a0fbfc125aabf362d15c41a8278bbb4a66eca942d5a93691b44 |
|
MD5 | 7a246510e37b5a2d7f22868f7a8f7334 |
|
BLAKE2b-256 | e6a1a34de28f04841d9f916cd2e84ddeedcc49409de8a6cc8429801cd4e2dea9 |