CP - Copy
CP Command
Copies a local file or S3 object to another location locally or in S3.
CP <source>
, <destination> [ ! ]
[ , PROFILE <profile-name> ]
[ , REGION <s3-region> ]
[ , DEBUG ]
[ , DRYRUN]
[ , CA-BUNDLE <local-path> ]
[ , NO-VERIFY-SSL ]
<source>
The source local path or S3Uri.
<destination> [ ! ]
The destination local path or S3Uri.
PROFILE <profile-name>
Use a specific profile from your credential file.
REGION <s3-region>
The region to use. Overrides config/env settings.
DEBUG
Enable debug logging.
DRYRUN
Displays the operations that would be performed using the specified command without actually running them.
CA-BUNDLE <local-path>
The CA certificate bundle to use when verifying SSL certificates. Over-rides config/env settings.
NO-VERIFY-SSL
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
Examples
tacl> run s3com cp myfile, s3://bucket-name/nonstop-files/myfile
tacl> run s3com cp s3://bucket-name/nonstop-files/myfile, myfile !
tacl> run s3com cp s3://bucket-name/nonstop-files/myfile, s3://bucket-name/nonstop-files/myfile2
tacl> run s3com cp s3://bucket-name/nonstop-files/myfile, s3://bucket-name/nonstop-files/myfile2, DRYRUN
tacl> run s3com cp s3://bucket-name/nonstop-files/myfile, s3://bucket-name/nonstop-files/myfile2, CA-BUNDLE $VOLUME.SUBVOL.FILENAME
tacl> run s3com cp s3://bucket-name/nonstop-files/myfile, s3://bucket-name/nonstop-files/myfile2, NO-VERIFY-SSL