Filesender

Z MetaCentrum
Skočit na navigaci Skočit na vyhledávání
Metacentrum wiki is deprecated after March 2023
Dear users, due to integration of Metacentrum into https://www.e-infra.cz/en (e-INFRA CZ service), the documentation for users will change format and site.
The current wiki pages won't be updated after end of March 2023. They will, however, be kept for a few months for backwards reference.
The new documentation resides at https://docs.metacentrum.cz.

In case you need to pass large amount of data to someone without Metacentrum access, we recommend to use Cesnet Filesender upload. On this page we describe the CLI version, which can be used directly from Metacentrum frontends.

Get filesender configuration file

If you use filesender for the first time, you have to get the configuration file first. If you already have a configuration file, skip this step and go directly to the next chapter.

Log on Cesnet Filesender homepage

Use your Metacentrum username and password to login to [Cesnet Filesender homepage].

Upload some dummy file to initialize the database

There is a small bug causing that the GUI does not display entry for users with no upload history. To overcome this, upload and send (to yourself) any dummy file by drag-and-drop first.

Download configuration file from Cesnet Filesender

On main page, choose My Profile --> click on the link Download Python CLI client configuration.

Step 1 mod.png Step 2 mod.png

The configuration file is a normal text file. Nothing needs to be modified or added to this file, just save it somewhere on your frontend.

Upload files to Cesnet Filesender

To make filesender run, add it as a module

module add filesender-cli

and export a path to the configuration file.

export FILESENDER_CONFIG=/storage/.../path-to-configuration-file # default configuration is in $HOME/.filesender/filesender.py.ini

Then you can upload the file:

filesender.py -s "Subject" -r recipient_1@example.org    file.tar.gz     # upload file.tar.gz

Download files from Cesnet Filesender on MetaCentrum storages

Once you have received an email with a notification that some file has been uploaded to Filesender.Cesnet.cz and you have been granted permission to download its contents, click on the Download link.


Filesender down1.png


A new window in your browser will be open where you have to copy a URL hidden under the Download button.

Go to the terminal and use wget utility to download the file. The syntax looks like:

wget -O "file_name" "URL"

Replace file_name with name as you wish and URL by saved URL in your clipboard. Do not forget to use double quotes.


Filesender down2.png