2. SYNOPSIS
feelpp_remotedata is a simple application which can download data, upload data and print remote data listing.
4. OPTIONS
4.1. Options
feelpp_remotedata requires some options.
Name | Description | Default value |
---|---|---|
upload |
specify the remote server and the location of uploaded files on remote server |
|
download |
specify remote data to download |
|
data |
|
|
contents |
specify data contents to print in the terminal |
5. EXAMPLES
5.1. Download mode
-
Download file from an url
feelpp_remotedata --download https://raw.githubusercontent.com/feelpp/feelpp/develop/README.adoc
-
Download file/folder from Github
feelpp_remotedata --download "github:{repo:feelpp,path:README.adoc}"
-
Download file/folder from Girder
feelpp_remotedata --download "girder:{file:5b1f8707b0e9570499f66bd0}"
-
Download into a specific directory
feelpp_remotedata --download "girder:{file:5b1f8707b0e9570499f66bd0}" --data $HOME/mydir
5.2. Upload mode
-
Upload file/folder on Girder (require an authentication)
feelpp_remotedata --upload "girder:{folder:<a folder id>}" --data $HOME/mydata
5.3. Contents mode
-
With Girder
feelpp_remotedata --contents "girder:{folder:5ac72871b0e9574027047894}"
feelpp_remotedata --contents "girder:{file:5b1f8707b0e9570499f66bd0}"
feelpp_remotedata --contents "girder:{folder:[5ac72871b0e9574027047894,5ad4b75db0e9574027047d70],file:5b1f8707b0e9570499f66bd0}"
6. REMOTE STORAGE DESCRIPTION
6.1. Github
Option | Default value | Description |
---|---|---|
|
feelpp |
the github organization |
|
feelpp |
the github repository in organization |
|
<default in github> |
the branch in the git repository |
|
<root of repository> |
the path in the git repository |
|
<no default value> |
an authentication token |
7. AUTHENTICATION
7.1. Github
You need to give a token for access to private repository or increase the for example. Two ways to specify the token :
-
Define the environment variable FEELPP_GITHUB_TOKEN.
export FEELPP_GITHUB_TOKEN=xxxxx
-
Add token option in the github description.
github:{repo:feelpp,path:README.adoc,token:xxxx}
7.2. Girder
You need to give an api key for access to private data or upload data. Two ways to specify the token :
-
Define the environment variable FEELPP_GIRDER_API_KEY.
export FEELPP_GIRDER_API_KEY=xxxxx
-
Add api_key option in the girder description.
girder:{folder:5ac72871b0e9574027047894,api_key:xxxx}
Remark: another possibility for is to give directly the token generated from an api key (replace api_key by token). But it’s quite difficult to get a token from the web interface of Girder, and you a responsible to delete the token. With the api key system, the remotedata apps generate and delete token automatically.