Did you know that RackNerd is an official partner of Wasabi? We can deliver Wasabi Hot Cloud Storage services for use across our services in any of our datacenter locations. Feel free to contact our sales team for more information: sales@racknerd.com

In this tutorial, we will be going over how to integrate Wasabi onto a VPS or dedicated server. This tutorial assumes you have full root access to your server and that you are looking to mount a remote storage directory via Wasabi.

We will be utilizing “s3fs” – which is a FUSE filesystem that allows us to mount an S3 bucket as a local filesystem in a Linux machine.

Wasabi storage is compatible with the Amazon S3 API, so the same commands will work on s3fs and only the endpoint needs to be changed accordingly.

STEP #1: Login to SSH as root.

STEP #2: Configure the security credentials (access key and secret key) of your wasabi account to a password file,( let’s say /etc/.passwd_wasabi ) in the following format:

accessKeyId:secretAccessKey

STEP #3: Secure the file by changing its permissions:

chmod 600 /etc/.passwd-wasabi

STEP #4: Mount the drive

We can mount a drive/disk on Linux in two ways:

a. Temporary mount

Run the following command as root:

s3fs wasabistorage /path/to/mountpoint -o passwd_file=/etc/.passwd_wasabi -o url=https://s3.eu-west-1.wasabisys.com 

Replace the wasabistorage id and mountpoint parameters with actual values. You may also need to replace the end point URL depending on which location your Wasabi bucket is deployed in.

This method is not persistent and will be lost in the next system reboot. If you wish to make the mount persistent through reboots, please see below:

b. Permanent mount format

As the fstab is run by root user, you need to copy the .passwd_wasabi  file to root’s home directory and then add the wasasbi storage mount option into the /etc/fstab file in the following format:

s3fs#wasabistorage /path/to/mountpoint fuse _netdev,allow_other,use_cache=/cache,url=https:// s3.eu-west-1.wasabisys.com 0 0

The end point we used here is Wasabi EU West 1 (London) but you must choose the appropriate URL from here based on the region your Wasabi bucket is deployed in.

After this you would be able to explore and make changes to the contents of newly added drive just like any other regular drive in Linux.

Please be sure to check out our server hosting solutions below, all of which are optionally available with Wasabi Hot Cloud Storage!

Server Hosting Solutions by RackNerd:

Shared Hosting
cPanel Web Hosting in US, Europe, and Asia datacenters
Logo
Reseller Hosting
Create your new income stream today with a reseller account
Logo
VPS (Virtual Private Server)
Fast and Affordable VPS services - Instantly Deployed
Logo
Dedicated Servers
Bare-metal servers, ideal for the performance-demanding use case.
Logo

Leave a comment

Your email address will not be published. Required fields are marked *