Ubuntu server and Wasabi cloud with s3fs

(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

 

 

Recent Posts

 

n8n ist ein leistungsstarkes Workflow- und Automatisierungs-Tool. In dieser Anleitung beschreibe ich, wie wir n8n ohne Docker auf einem Ubuntu-Serve…

Weiterlesen

 

Die Agency-Extension von NITSAN ist ein leistungsstarkes Template für TYPO3-Websites. In diesem Artikel beschreibe ich, wie diese Extension korrekt…

Weiterlesen

 

Wichtiger Hinweis: PHP 8.3 enthält signifikante Änderungen gegenüber früheren Versionen. Bitte prüf vor dem Update die Kompatibilität deiner…

Weiterlesen

Mein Thunderbird zickte plötzlich unerklärlicherweise herum: Es erinnerte mich an längst abgelaufene Termine, Aufgaben und Geburtstage – und das jeden…

Weiterlesen

Wichtiger Hinweis zu Beginn: Ich mache mir eine Kopie von der Webseite, die ich nach Composer migrieren will. Wie man eine Webseite für eine Kopie…

Weiterlesen

Adminer ist die Alternative zu phpMyAdmin

Weiterlesen

Voraussetzungen

• Ubuntu 22.04 Server

• SSH-Root-Zugang

• Apache2

• MySQL

• PHP8.2 PHP

 

Für Typo3 12.4 sollten außerdem folgende PHP-Module…

Weiterlesen

Extensions aktualisieren

Bei einem Upgrade eine Typo3-Installation ist als erstes eine Sicherung der Datenbank inklusive der Document Root Pflicht.…

Weiterlesen

Ich hatte auf einem frischen Ubuntu-Server 22.04 Typo3 12.2 und anschließend auch 11.5 mit Composer installiert. Als ich mich ins Backend einloggen…

Weiterlesen

Ich habe auf meinem Ubuntu-Mailserver Roundcube 1.4.11 am Start und möchte auf die aktuelle Version upgraden. Dazu gehe ich auf die Webseite von…

Weiterlesen

Kategorien

  • Kein Nachrichteneintrag gefunden