| ascp: Transferring from the Command Line with Ascp |
119
Storage Platform
ascp Syntax and Examples
Upload example:
# ascp --mode=send --user=bear --
host=s3.asperasoft.com bigfile.txt
s3://1K3C18FBWF9902:GEyU...AqXuxtTVHWtc@s3.amazonaws.com/
demos2014
Download syntax:
# ascp
options
--mode=recv --user=
username
--
host=
s3_server_addr
s3://
access_id
:
secret_key
@s3.amazonaws.com/
my_bucket
/
my_source_path
destination_path
Download example:
# ascp --mode=recv --user=bear --host=s3.asperasoft.com
s3://1K3C18FBWF9902:GEyU...AqXuxtTVHWtc@s3.amazonaws.com/
demos2014/bigfile.txt /tmp/
Azure
These examples are for Azure blob storage. For Azure Files, use the syntax:
azure-
files://
storage_account
:
storage_access_key
@file.core.windows.net/
share
.
Aspera recommends running
ascp
transfers with Azure Data Lake Storage with a docroot
configured.
Upload syntax:
# ascp
options
--mode=send --user=
username
--
host=
server_address
source_files
azu://
storage_account
:
storage_access_key
@blob.core.windows.net/
path_to_blob
Upload example:
# ascp --mode=send --user=AS037d8eda429737d6 --
host=dev920350144d2.azure.asperaondemand.com bigfile.txt
azu://astransfer:zNfMtU...nBTkhB@blob.core.windows.net/abc
Download syntax:
# ascp
options
--mode=recv --user=
username
--
host=
server
azu://
storage_account
:
storage_access_key
@blob.core.windows.net/
path_to_blob
/
source_file
destination_path
Download example:
# ascp --mode=recv --user=AS037d8eda429737d6 --
host=dev920350144d2.azure.asperaondemand.com azu://
astransfer:zNfMtU...nBTkhB@blob.core.windows.net/abc /
downloads
Google Cloud
Storage
Note:
The examples below require that the VMI running the Aspera server is a Google
Compute instance.
# ascp
options
--mode=send --user=
username
--
host=
server_address
source_files
gs:///
my_bucket
/
my_path