...
You will need to configure s3cmd
before you can use it. The tool will read the configuration on ~ ~/.s3cfg
Create the configuration file if it does not exist:
No Format touch ~/.s3cfg
Edit the file and set up at least the following parameters. You will need to replace
<provider>
by eitherecmwf
oreumetsat
(your storage provider), as well as<youraccesskey>
and<yoursecretkey>
that will be given to you by the providerNo Format host_base = storage.<provider>.europeanweather.cloud host_bucket = access_key = <youraccesskey> secret_key = <yoursecretkey> use_https = True
Basic tasks
If you type s3cmd -h
you will see the different options of the command, but here are the basics:
...
You need to store your credentials in a file so S3FS can authenticate with the service. You need to replace <youraccesskey>
and <yoursecretkey>
by your actual credentials.
...
Assuming you want to mount your bucket in /mnt/yourbucket
, here is what you need to do:
No Format |
---|
sudo mkdir /mnt/bucketname echo "s3fs#yourbucket /mnt/yourbucket fuse _netdev,allow_other,nodev,nosuid,uid=$(id -u),gid=$(id -g),use_path_request_style,url=https://storage.<provider>.europeanweather.cloud 0 0" | sudo tee -a /etc/fstab sudo mount -a |
Again, please you must replace <provider>
by the ecmwf
or eumetsat
, and you may customise other mount options if you wish to do so. At this point you should have your bucket mounted and ready to use.
...