alpacon
Alpacon cp

alpacon cp

Copy files between local and remote locations

Synopsis

The cp command allows you to copy files and directories between your local machine and a remote server.
It supports uploading, downloading, and specifying authentication credentials such as username and groupname.

Example Usage

  • Upload multiple files to a remote server:
alpacon cp /local/path/file1.txt /local/path/file2.txt [SERVER_NAME]:/remote/path/
  • Download files from a remote server to a local directory:
alpacon cp [SERVER_NAME]:/remote/path1 /remote/path2 /local/destination/path
  • Upload or Download folder:
alpacon cp -r /local/path/directory [SERVER_NAME]:/remote/path/
alpacon cp -r [SERVER_NAME]:/remote/path/directory /local/path/
  • Copy using specific username:
alpacon cp -u [USERNAME] /local/path/file.txt [SERVER_NAME]:/remote/path/
alpacon cp /local/path/file.txt [USER_NAME]@[SERVER_NAME]:/remote/path/
  • Copy using specific groupname:
alpacon cp -u [USERNAME] /local/path/file.txt [SERVER_NAME]:/remote/path/
alpacon cp [SOURCE...] [DESTINATION] [flags]

Options

  -g, --groupname string   Specify group name
  -h, --help               Show help for the cp command
  -u, --username string    Specify username
  -r                       Option for directory