alpacon cp
Copy files between your local machine and a remote server. Supports SSH-like user@host:path syntax for specifying the username inline with the remote path.
alpacon cp [SOURCE...] [DESTINATION] [flags]
Remote paths use the format [USER@]SERVER:/path.
Options
-h, --help help for cp
-r, --recursive Recursively copy directories
-u, --username string Specify username
-g, --groupname string Specify groupname
Examples
Upload files to a remote server:
alpacon cp /local/file1.txt /local/file2.txt my-server:/remote/path/
Upload or download a directory:
alpacon cp -r /local/directory my-server:/remote/path/
alpacon cp -r my-server:/remote/directory /local/path/
Download a file from a remote server:
alpacon cp my-server:/remote/file.txt /local/path/
Specify username with SSH-like syntax:
alpacon cp /local/file.txt admin@my-server:/remote/path/
alpacon cp -r admin@my-server:/var/log/ /local/logs/
Specify username with flag:
alpacon cp -u admin /local/file.txt my-server:/remote/path/
Specify groupname:
alpacon cp -g developers /local/file.txt my-server:/remote/path/