Skip to main content

Recursively copy missing files to a directory

Project description

parsync

Parsync lets you recursively copy missing files to a directory.

This is equivalent to cp -r --ignore-existing SRC DST but using concurrent copies to accelerate the process.

Example

Copy the content of the current directory:

parsync * /dest

Copy with 2 threads:

parsync -p 2 src dest

Copy only jpeg files and skip a specific directory, note the usage of python regex syntax:

parsync --filter='\.jpg$' --exclude='/somedir/' src dest

Usage

usage: parsync [-h] [--procs PROCS] [--filter [FILTER ...]] [--exclude [EXCLUDE ...]] [--version] SRC [SRC ...] DST

Recursively copy missing files to a directory.

This is equivalent to: cp -r --ignore-existing SRC DST

Note: matching patterns use python regex syntax.

positional arguments:
  SRC                   source files and directories
  DST                   destination directory

options:
  -h, --help            show this help message and exit
  --procs PROCS, -p PROCS
                        maximum number of concurrent copies
  --filter [FILTER ...], -f [FILTER ...]
                        pattern to filter source files
  --exclude [EXCLUDE ...], -e [EXCLUDE ...]
                        pattern to exclude source files
  --version, -v         show program's version number and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsync-0.0.1.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

parsync-0.0.1-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page