Skip to main content

A friendly file copier/installer

Project description

doppel copies files or directories to a destination (a file, directory, or archive). Think of it as the offspring of *install(1)* and *tar(1)*.

Usage

doppel [OPTION]... SOURCE... DEST

To copy files or directories, just list the sources as arguments followed by the destination: doppel src1 src2 dst. By default, if only one source is specified, it is copied onto the destination; if multiple sources are specified, they are copied into the destination. This default can be explicitly specified with -o/--onto or -i/--into, respectively.

If the destination requires administrator access to write to, doppel will try to detect this an automatically provide a sudo (or equivalent) prompt before copying.

Options

-C, –directory=DIR

Change to directory DIR before resolving paths of source files.

-f, –format=FMT

Set the format of the output archive; one of: tar, gzip, bzip2, or zip. If this option is specified, --into is implied. If not set, source files will be copied normally, and no archive will be created.

-i, –into

Copy sources into directory DEST.

-m, –mode=MODE

Set the file permissions to MODE (an octal) when copying. Note: this has no effect when --format=zip.

-N, –full-name

When copying, use the full name of each source file as specified on the command line instead of just the tail. This behavior is similar to *tar(1)*.

-o, –onto

Copy a single source onto file or directory DEST.

-p, –parents

Automatically create parent directories for DEST as needed.

-P, –dest-prefix=DIR

A prefix to add to the paths of destination files. This only applies when using --format.

-r, –recursive

Recursively copy source directories to the destination.

-S, –sudo=WHEN

Before copying, elevate with sudo (or your platform’s equivalent). WHEN is one of always, auto (the default), or never. If auto, doppel will attempt to determine automatically if sudo would be needed before performing the copy.

@file

Read options from file and use them when executing.

–help

Display a help message and exit.

–version

Output version information and exit.

License

This project is licensed under the BSD 3-clause license.

Project details


Release history Release notifications

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

History Node

0.1.0.dev0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
doppel-0.3.1-py2.py3-none-any.whl (8.0 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 13, 2018
doppel-0.3.1.tar.gz (6.2 kB) Copy SHA256 hash SHA256 Source None May 13, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page