← Back to notes

Simple Wasabi Backup Setup (outline)

Simple Wasabi Backup Setup (outline).md

Simple Wasabi Backup Setup (outline)

You set it up once for the whole VPS, then everything (all domains/apps) gets backed up together.

Your domains:

all live under:

/home/

So one backup covers everything.


1️⃣ Create a bucket in Wasabi

In the Wasabi console:

Buckets
Create Bucket

Example:

bucket name: vps-backups
region: us-east-1

Nothing else needed.


2️⃣ Create API keys

In Wasabi:

Access Keys → Create Access Key

You get:

ACCESS KEY
SECRET KEY

Save them.


3️⃣ Install rclone on the VPS

curl https://rclone.org/install.sh | sudo bash

Verify:

rclone version

4️⃣ Configure Wasabi in rclone

Run:

rclone config

Choose:

n) new remote
name: wasabi
storage: s3
provider: Wasabi

Enter:

access_key
secret_key
region (ex: us-east-1)
endpoint: s3.wasabisys.com

Test:

rclone ls wasabi:

You should see your bucket.


5️⃣ Create the backup script

Example:

nano /root/vps-backup.sh
#!/bin/bash

DATE=$(date +%F)

BACKUP="/tmp/vps-$DATE.tar.gz"

tar -czf $BACKUP \
/home \
/etc/apache2/conf.d/userdata \
/etc/apache2/conf/httpd.conf

rclone copy $BACKUP wasabi:vps-backups/

rm $BACKUP

Make executable:

chmod +x /root/vps-backup.sh

6️⃣ Test it

Run once manually:

/root/vps-backup.sh

Then check Wasabi — you should see:

vps-backups/
  vps-2026-04-01.tar.gz

7️⃣ Automate with cron

crontab -e

Add:

0 3 * * * /root/vps-backup.sh

This runs every night at 3 AM.


What gets backed up

The script above backs up:

/home                ← all websites
/etc/apache2         ← all Apache configs

Which covers:


Optional (recommended later)

Add database backups:

mysqldump --all-databases > /tmp/mysql.sql

Include that in the archive.


Your cost impact

Since you’re already paying ~$8/month minimum, adding backups likely costs nothing extra until you exceed 1TB.


Reality check

Your total backup size is probably:

Item Estimate
websites 1–5 GB
photos already stored
databases <1 GB
configs tiny

So you are well under 1TB.


Final architecture

Your VPS
    │
    │ nightly cron
    ▼
backup script
    │
    ▼
rclone
    │
    ▼
Wasabi bucket

If you’d like, I can also show you a much better backup method (restic) that gives you:

…and it’s actually simpler once set up.