Skip to main content

PyPI version

partialCopy

A tool to copy big data to multiple smaller disks

Motivation

As the storage becomes larger in big projects, we need to a tool to break large folders (100 TBs) to smaller chunks, so we can migrate to another location or storing it on tapes.

How does it work?

The tool finds the best placement for the files and it creates a files list in --save-to directory which can be passed rsync using --files-from parameter.

Installation

sudo pip install partialCopy

Usage

usage: pcp.py [-h] [--dest DEST | --dest-size DEST_SIZE] [-s SAVE_TO] [-f]
              [-n] [-ma MODIFIED_AFTER] [-fp FIND_PARAMS]
              src

positional arguments:
  src                   Source Directory

optional arguments:
  -h, --help            show this help message and exit
  --dest DEST           Destionation mountpoint
  --dest-size DEST_SIZE
                        Destination size, given in bytes or using 1 letter
                        unit B,K,M,G,T,P
  -s SAVE_TO, --save-to SAVE_TO
                        Where to save rsync list,default
                        '$src/pcp_rsync_list/'
  -f, --force           Rewrite all lists again
  -n, --new             Find New Files
  -ma MODIFIED_AFTER, --modified-after MODIFIED_AFTER
                        Find files modified after certain time (YYYY-mm-dd)
  -fp FIND_PARAMS, --find-params FIND_PARAMS
                        Parameters to find command

Changes

  • Allowing to provide size rather than mount point.
  • Finds only new files using -n parameter.
  • Finds files modified after a certain date using -ma parameter.
  • Allows rewriting all lists using -f flag.

Contributors

Metadata

Release files for partialCopy 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for partialCopy 0.6.1
File Size Uploaded Provenance Actions
partialCopy-0.6.1.tar.gz 5.4 kB Without provenance Details for partialCopy-0.6.1.tar.gz

Release files / partialCopy-0.6.1.tar.gz

Download URL partialCopy-0.6.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
206c14f90d26066dcacb3719f3281dfa082493ddba3779f9613912d4d557fa73
BLAKE2b-256 checksum
How to use checksums
45664e63dd8e8a3d8fb9f047883260248382ade23a3a757b50e378412e877947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15+

Security for partialCopy 0.6.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page