(Die deutsche Version dieses Artikels befindet sich hier: Ubuntu-Server und Wasabi-Cloud)
I got myself 5 TB of cloud storage at Wasabi. Now I want to establish a connection between my Ubuntu server and the Wasabi bucket – that's what the storage is called. I chose the storage region Frankfurt am Main in (Germany) at Wasabi (Wasabi EU Central 2 (Frankfurt), which we should keep in mind for later. To connect to my Wasabi cloud, i.e. mount it, I want to use the program s3fs. Previous installations should not be present on the server, so I delete those first as a precaution:
sudo apt remove fuse
I then reinstall s3fs:
sudo apt install s3fs
In my Wasabi account, I create two keys under “Access Key”. On my server, I create a file to contain the two keys. I put the file under /etc/ for example, the file itself could be named “passwd-s3fs”:
vi /etc/passwd-s3fs
Now the vim editor should open and I copy the two keys into the file, without spaces, key 1 is separated from key 2 with a colon.
key_1xyz:key_2xyz
I adjust the permissions of the file:
chmod 600 /etc/passwd-s3fs
I gave my wasabi bucket the name "wasabi-bucket1". My mount point, which is the directory that will communicate with my Wasabi cloud, will be here:
/home/MYUSERNAME/s3-bucket
So I create an appropriate directory
mkdir /home/MYUSERNAME/s3-bucket
Now to connect to my Wasabi cloud the storage region is of interest. The different URLs of the regions can be found here: https://wasabi-support.zendesk.com/hc/en-us/articles/360015106031-What-are-the-service-URLs-for-Wasabi-s-different-regions-
Since I chose the Frankfurt region, my URL is “s3.eu-central-2.wasabisys.com”. Now I have all the info to establish a connection:
s3fs wasabi-bucket1 /home/MYUSERNAME/s3-bucket -o passwd_file=/etc/passwd-s3fs -o url=https://s3.eu-central-2.wasabisys.com
Changing to the s3-bucket directory:
cd /home/MYUSERNAME/s3-bucket
If there are already files in the Wasabi cloud, they should now be in the s3-bucket directory as well. Conversely, I will create a file on my server in the s3-bucket directory:
touch test.file
This file should now also be visible in wasabi-bucket1 in my Wasabi Cloud. I can terminate the connection again with
fusermount -uz /home/MYUSERNAME/s3-bucket
Bemerkungen :