Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols cp

Copy a file between this machine and a sandbox

Copy one file. Exactly one side is SANDBOX:/absolute/path; the other is a local path, or - for stdin/stdout.

Usage

pols cp SRC DST [flags]

Examples

pols cp ./app.tar.gz web:/home/user/app.tar.gz
pols cp web:/var/log/syslog -
pols cp --root --mode 0755 ./setup.sh web:/usr/local/bin/setup
pols cp --user alice ./notes.md web:/home/alice/notes.md

Flags

-h, --help              help for cp
    --mode string       permission bits of the uploaded file, like 0755 (default 0644)
    --root              make the uploaded file owned by root
-u, --user pols users   make the uploaded file owned by this sandbox user (see pols users)

The global flags work with this command too.