When it comes to safeguarding your data, simplicity and reliability go a long way. In this post, we’ll walk through how you can set up automatic, secure backups from a Debian 12 server to Wasabi cloud storage using Restic, a powerful yet minimalistic tool.

Getting Started: What You Need

Before diving in, make sure you have:

  • A server running Debian 12
  • A Wasabi S3 bucket and access credentials
  • Restic installed (sudo apt install restic)

This guide assumes you have root or sudo access to your server.

Why This Combo Works

Restic is fast and secure. Every backup is encrypted, deduplicated, and verifiable. You don’t need to worry about managing complex configurations, just set your targets and go.

Wasabi makes a compelling cloud destination because of its predictable pricing and no-egress fees. It supports the S3 API, so it plugs right into Restic with no extra effort.

Debian 12 offers a stable foundation. It’s lean, long-term supported, and friendly to automation. A perfect base for a backup system that just works.

Step-by-Step Setup

1. Set Your Credentials

Create a secure file at /var/app/secret/.restic:

Make sure it’s protected:

You can also use aws configure --profile restic if you prefer storing credentials globally.

2. Create a Restic Password File

3. Initialize the Backup Repository

You should see confirmation that the repo was created.

4. Prepare Inclusion and Exclusion Lists

Create a list of folders to back up:

And what to exclude:

5. Write the Backup Script

Make it executable:

6. Automate with Cron

Add this to your root crontab:

Final Thoughts

By combining Restic, Wasabi, and Debian 12, you get a backup solution that’s simple, secure, and cost-effective. It’s easy to set up, scales well with your data, and gives you peace of mind that your backups are both safe and retrievable, without surprise costs.

If you want to build on this, you can add Telegram alerts, log monitoring, or even snapshot browsers. But this setup gives you a rock-solid foundation to start with.

Leave A Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.