-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to migrate from aspera ats download
to an ascli
command
#167
Comments
For ATS use the node plugin ascli node download --url=http://ats-aws-us-east-1.aspera.io --username=someusertoken --password=somepasswordtoken "AFileOrDirectoryInAmazonS3" --to-folder=/mnt/library/aspera-downloads For transfers , make sure that the transfer sdk is installed: If you do several commands , it can be interesting to create a "preset" configuration: ascli conf preset update myatsnode --url=http://ats-aws-us-east-1.aspera.io --username=someusertoken --password=somepasswordtoken Then you can recall that config: ascli node -Pmyatsnode download "AFileOrDirectoryInAmazonS3" --to-folder=/mnt/library/aspera-downloads or you can even make this the default: ascli conf preset set default node myatsnode and then just do: ascli node download "AFileOrDirectoryInAmazonS3" --to-folder=/mnt/library/aspera-downloads note that the yes, internally, ascli will build a "transfer spec", and use this for transfers: you can modify the transfer spec using option |
Hi Laurent, thanks. I'm having a bit of trouble still, here is a command that works with
Notice it starts downloading and spitting out transfer status / ETA. Here I have tried replicating with
Note, I have removed a few Also to be clear, the They are created with a |
I'm also trying to simply use an existing transfer spec that works with Aspera Connect (Desktop):
However, apparently this requires a
We do not want to expose root username or password to the clients that need to perform these operations. Generating these one-time tokens is ideal. |
First, in the command you have given, the url scheme is The username and password options provided to the Using the Now, if you want to use the Here an example: ascli -N server upload --url=ssh://aspera.example.com:33001 --username=xfer 'faux:///test1?1k' --to-folder=/Upload --ts=@json:'{"token":"ATB3_AEA5bVarQ65KbyqjU1Nsln7oFpwGhRZLBvGUN-UnDfAsCeNIhGdqpwL_CT_1AxqEtlUAAF8OJmC-Yn7imJKD7pGNTqf_3BTA"}' Another example with all in transfer spec: ascli -N server upload --url=ssh://asperahsts.example.com:33001 --sources=@ts --ts=@json:'{"paths":[{"source":"faux:///test2?1k","destination":"/Upload/file1"}],"token":"ATB3_AEA5bVarQ65KbyqjU1Nsln7oFpwGhRZLBvGUN-UnDfAsCeNIhGdqpwL_CT_1AxqEtlUAAF8OJmC-Yn7imJKD7pGNTqf_3BTA"}' in Another tool is also provided: asession @json:'{"file_list_folder":".","spec":{_put_your_transfer_spec_here_}}' |
Hi Laurent, Thanks for this. I'm successfully triggering downloads now using The output from the command seems different than with I suppose I may need to handle downloads with one process and track download progress with another? Using this code:
|
Hi, In fact, as specified here:
Really, the best to do, if you want to trigger a transfer in nodejs, is to use the SDK instead of the CLI. https://github.com/laurent-martin/aspera-api-examples/blob/main/app/js/src/examples/node_v2.js The Aspera Transfer SDK available here: https://developer.ibm.com/apis/catalog/aspera--aspera-transfer-sdk/Introduction Note: add option |
Per IBM's request I am trying to get off of an older version of Aspera and onto the
ascli
version offered here.Note: we have a primary server that generates Aspera access keys and secrets for our server-initiated transfers (CentOS 7 on its way to AlmaLinux), and generates transfer specs for our Desktop-initiated Aspera Connect transfers (typically Mac or Windows users).
In Linux, we can run a command similar to:
"/opt/.aspera/cli/bin/aspera" ats download -H http://ats-aws-us-east-1.aspera.io -u someusertoken -p somepasswordtoken -s "AFileOrDirectoryInAmazonS3" -d /mnt/library/aspera-downloads
I'm trying to find the equivalent with
ascli
.Even better, I'd love to find out how to use the
transfer_spec
with downloading multiple files from S3 to local directories, and building out the different mapping from remote-to-local:I feel like all the information must be somewhere in the
README
but I'll be honest I'm having trouble narrowing down all the different commands.The text was updated successfully, but these errors were encountered: