Connect S3fs With Zata.ai

Zata.ai provides S3-compatible object storage that can be mounted as a local drive on your Linux system using s3fs-fuse.

Prerequisites

Before you start, ensure you have:

  • A Zata.ai account

  • Access Key and Secret Key (available in Zata Console → Access Keys)

  • Your Bucket Name

  • Your Zata.ai S3 Endpoint (e.g., https://idr01.zata.ai)

  • A Linux server (Ubuntu/Debian/CentOS supported)

  • Root or sudo privileges

Install s3fs

Ubuntu/Debian

sudo apt update
sudo apt install s3fs -y

CentOS/RHEL

sudo yum install s3fs-fuse -y

Create Credential File

Create a password file to store your access keys:

echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fs

Replace ACCESS_KEY_ID and SECRET_ACCESS_KEY with your actual credentials.

Create Mount Directory

sudo mkdir /mnt/s3bucket

Mount the Zata.ai Bucket

Run the following command (replace placeholders):

s3fs BUCKET_NAME /mnt/s3bucket -o passwd_file=~/.passwd-s3fs,url=https://YOUR_S3_ENDPOINT,allow_other,use_cache=/tmp,sigv4,use_path_request_style

Example

s3fs neevapp /mnt/s3bucket -o passwd_file=~/.passwd-s3fs,url=https://idr01.zata.ai,allow_other,use_cache=/tmp,sigv4,use_path_request_style

Verify Mount

df -h | grep zata
ls /mnt/zata

Auto-mount on Boot

To automatically mount the bucket on system boot, edit /etc/fstab and add the following line:

s3fs#BUCKET_NAME /mnt/zata fuse _netdev,passwd_file=/root/data/passwd.txt,url=https://idr01.zata.ai,allow_other,use_cache=/tmp,sigv4,use_path_request_style 0 0

Then test the configuration:

sudo mount -a

Conclusion

Your Zata.ai Object Storage is now mounted as a local drive. You can read and write files directly to /mnt/zata just like a local directory.

Example Use Cases

  • Backup local folders directly to Zata.ai

  • Mount in a Docker host for shared media files

  • Use as a network drive in hybrid cloud setups

Last updated