Home » Back Up Unraid to S3-Compatible Storage

Back Up Unraid to S3-Compatible Storage

UNRAID · PRACTICAL BUYING & SETUP GUIDE

Research reviewed: 28 November 2026.

Use restic when you want a straightforward encrypted backup repository that works with S3-compatible object storage and gives you explicit control over backup, restore, verification, and retention. Restic’s current documentation describes it as a backup program that stores multiple revisions of files and directories in an encrypted repository across different backends, and its core workflow includes init, backup, check, restore, forget, and prune.

Capacity planning should start with the data you actually need to recover: appdata, configuration shares, selected user shares, and any application databases whose loss would be expensive or disruptive. The important distinction is consistency, not just file location: a raw copy can preserve bytes, but application state may still need a quiesced export or application-specific backup to be truly recoverable.

If you are comparing providers, Backblaze B2 is a practical S3-compatible target because Backblaze documents a regional S3 endpoint, Signature Version 4 only, and a clear separation between B2 Cloud Storage and its separate Computer Backup product. For this workflow, choose B2 object storage through the S3-Compatible API, not Computer Backup.

Our recommendation

Recommended choice

For most Unraid servers, the best default is restic to a dedicated S3-compatible bucket with a unique repository password, a narrowly scoped provider credential, and a retention policy that keeps recent recovery points plus weekly and monthly history. That combination gives you encryption at rest in the repository, off-site protection, and a restore path you can test without depending on a vendor-specific backup agent.

If your provider is Backblaze B2, use the S3-Compatible API unless you have a separate integration requirement that specifically depends on the Native API. Backblaze says the S3-Compatible API is intended for existing S3 tools and new integrations, uses regional endpoints of the form s3.<region>.backblazeb2.com, and accepts only HTTPS with Signature Version 4 authentication.

Choose your Unraid licence

We may earn a commission through our Unraid link, at no extra cost to you. Keep your existing licence if it already meets your needs.

Storage for this Unraid workflow

Choose an internal NAS HDD for bulk capacity or an SSD for application storage. These components serve different roles; use the recommendation in this guide.

Western Digital 10TB WD Red Plus NAS Internal Hard Drive HDD - 7200 RPM, SATA 6 GB/s, CMR, 512 MB Cache, 3.5" - WD100EFGX

Western Digital 10TB WD Red Plus NAS Internal Hard Drive HDD - 7200 RPM, SATA 6 GB/s, CMR, 512 MB Cache, 3.5" - WD100EFGX

$445.49

Buy on Amazon

Last successful Amazon check: 2026-11-27 14:54:24 UTC. USD.

Seagate IronWolf 10TB NAS Internal Hard Drive, 3.5" SATA 6Gb/s, 7200 RPM, CMR, RAID Optimized, IronWolf Health Management – for NAS Systems (ST10000VNZ00)

Seagate IronWolf 10TB NAS Internal Hard Drive, 3.5" SATA 6Gb/s, 7200 RPM, CMR, RAID Optimized, IronWolf Health Management – for NAS Systems (ST10000VNZ00)

$449.00

Buy on Amazon

Last successful Amazon check: 2026-11-28 01:05:00 UTC. USD.

Lexar 1TB NM790 Internal NVMe SSD, 7400/6500 MB/s, M.2 2280, PCIe Gen 4x4 | Compatible w/ PS5, Gamers & Content Creators, PC & Laptops, SLC Cache, Single-Sided Design, LNM790X001T-RNNNU

Lexar 1TB NM790 Internal NVMe SSD, 7400/6500 MB/s, M.2 2280, PCIe Gen 4x4 | Compatible w/ PS5, Gamers & Content Creators, PC & Laptops, SLC Cache, Single-Sided Design, LNM790X001T-RNNNU

$179.49

28% off · Amazon reference price $249.99

Buy on Amazon

Last successful Amazon check: 2026-11-28 06:38:19 UTC. USD.

As an Amazon Associate, Cloudzat earns from qualifying purchases. Price and availability may change; Amazon checkout controls the purchase price. Cards retain the last successful check while the shared catalogue refreshes.

What to do, in order

  1. Define the backup set before you touch the bucket

    Start by listing what belongs in the backup and what does not. In most Unraid environments, the first candidates are appdata, exported configuration files, user shares that are hard to rebuild, and any database-backed service data that would be painful to reconstruct by hand. Keep cache, transient downloads, and reproducible media libraries out of the first pass unless you have a clear recovery reason to include them.

    Do not treat a file copy as automatically application-consistent. If a database or queue lives inside appdata, the safe pattern is to pair the file-level backup with an application-aware export or shutdown window so the restore is coherent. The backup tool can preserve the directory tree, but the application decides whether that tree is internally consistent.

    Before any migration or bucket change, make an independent backup of the source data somewhere else first. Do not format source disks as part of an import plan, and do not rely on a single new cloud repository as the only recovery copy. The order should be backup, verify, then migrate.

  2. Create a dedicated repository and keep secrets separate

    Use one restic repository for one backup purpose. Restic stores backups in an encrypted repository, so the repository password is a real recovery secret, not a convenience setting. Keep that password separate from the storage-provider credential and store both in a place your own administration process can recover later.

    On the provider side, use the least-privilege key that can reach only the bucket or path needed for this repository. On the restic side, initialize a fresh repository rather than reusing credentials or paths from another project. That separation reduces the blast radius if a cloud key is ever rotated or compromised.

    If you use Backblaze B2, remember that the endpoint is regional and must match the bucket’s region. Backblaze documents the endpoint format as s3.<region>.backblazeb2.com, says the API accepts only HTTPS, and notes that Signature Version 4 is required.

  3. Mount only the paths you intend to protect

    Keep the backup job’s view of the server narrow. Expose only the shares, appdata paths, and virtual machine directories you actually want to preserve, rather than presenting the entire host filesystem to the backup process. That makes the protected scope auditable and helps prevent accidental inclusion of data you did not mean to back up.

    For Docker-backed applications, document the persistent mappings before you change anything. A backup tool cannot reconstruct a container’s data layout if you do not know where the persistent files live. Keep a clear record of bind mounts, database files, cache directories, and configuration locations so a restore lands on the same structure or a deliberately renamed replacement.

  4. Run the first backup, then restore to a separate path

    Take the first backup small enough to validate immediately. After it finishes, perform a restore to a separate empty test directory rather than writing back onto the live source path. Restic’s workflow separates backup, restore, and check for a reason: a completed upload does not by itself prove the repository can be decrypted and recovered.

    A useful restore test proves three things: the repository is readable, the password works, and the restored tree is usable in another location. If the backup includes application data, confirm that the application can open the restored copy before you trust it for recovery. For database-backed services, a file restore may be enough for configuration but not enough for a clean logical recovery.

  5. Set retention policy and integrity checks on a schedule

    Use restic’s policy-based forgetting to keep recent recovery points and age out older ones. Its current documentation supports rules such as keep-last, keep-hourly, keep-daily, keep-weekly, keep-monthly, and keep-yearly, and it treats forget and prune as separate steps: forget removes snapshots from retention, while prune removes the now-unneeded data.

    A practical schedule keeps several recent backups for quick rollback, a smaller weekly set for medium-range recovery, and monthly or yearly snapshots for longer retention. Run check on its own cadence rather than waiting until a restore emergency reveals repository problems. Restic’s documentation explicitly positions check as the integrity step, separate from backup creation and restore.

    If your repository grows faster than expected, review the retention policy before expanding the bucket or deleting data by hand. The safer fix is usually policy tuning, not ad hoc pruning, because retention rules let you preserve the recovery windows that actually matter.

  6. Test the recovery path and document the decision

    A cloud backup is only useful if you can restore from it predictably. Keep a short restore note that records the repository location, the bucket region, the repository password handling process, and the exact temporary restore path you used during validation. That way, a future recovery does not depend on memory.

    For application data, distinguish between filesystem snapshots and application-level consistency. If the service offers its own export, dump, or backup routine, include that artifact alongside the file-level repository so you can restore both the structure and the data model.

The first backup and recovery check

These are the restic subcommands for the configured container job, run separately in this order. Choose a small source for the pilot. Replace SNAPSHOT_ID with the ID returned by snapshots.

init
backup /source
snapshots
check
restore SNAPSHOT_ID --target /restore

The restore destination must be empty and separate from production. Open the restored files before scheduling the next backup. Metadata checks do not read every stored data block; schedule a documented read-data check when you can accommodate its transfer and provider costs. Keep retention deletion separate from the first setup until recovery has been proven.

The decisions that matter

Configure one restic container job

Use the official restic/restic container image. Map the source share to /source read-only, a new empty restore folder to /restore read/write, a persistent cache folder to /cache, and a private credentials folder to /secrets read-only. Run each restic action as a one-shot job with the same mappings. Do not leave the job with write access to your production source.

Set RESTIC_REPOSITORY to s3:https://YOUR-ENDPOINT/YOUR-BUCKET/unraid, RESTIC_PASSWORD_FILE to /secrets/repository-password, and RESTIC_CACHE_DIR to /cache. Add AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION through the job’s protected environment configuration. The password file contains the repository password, not the cloud secret. Keep a separate recovery copy of both credentials and the repository password.

The image’s entrypoint is restic, so its command is init for a new repository, backup /source for a backup, or snapshots to list recovery points. Run init once, not before every scheduled backup. For B2, use the exact endpoint and region shown for your bucket, not an endpoint copied from another account.

How to choose between generic S3 and Backblaze B2

Choose generic S3 if your organization already standardizes on a particular object-storage provider, or if another team owns the bucket and the lifecycle policies. Choose Backblaze B2 if you want a provider-neutral object store that still works cleanly with S3 tooling. Backblaze says the S3-Compatible API is the recommended path for existing S3 tools and new integrations.

Backblaze B2 is not the same product as Computer Backup. Backblaze explicitly separates the two, and for this use case the relevant service is B2 Cloud Storage accessed through the S3-Compatible API. That matters because the backup target is an object store repository, not a device-oriented consumer backup service.

Encryption, credentials, and least privilege

Restic encrypts the repository, so the repository password is the secret that ultimately protects the backup contents. The provider credential only grants access to the object store; it does not replace the restic password. Keep those secrets independent so a bucket compromise does not automatically become a repository compromise.

Backblaze documents app keys for B2 access and recommends S3-compatible integration when you already use S3 tools. Use a scoped application key rather than a broad account credential wherever possible, and keep the repository password outside the container definition, share tree, and public documentation.

Restore discipline matters more than upload success

The correct operational test is not whether the backup job completed, but whether a restore works to a separate destination. Restic’s documentation shows that backup, check, and restore are separate operations, and its check command is specifically meant to verify repository integrity.

For file data, verify the restored tree in a new directory first. For application data, verify that the application can read the restored files before you overwrite anything in production. That distinction is especially important for databases, queues, and media managers that store state inside appdata.

Backblaze B2 specifics that affect setup

Backblaze’s S3-Compatible API uses regional endpoints in the form s3.<region>.backblazeb2.com and requires HTTPS. It also supports Signature Version 4 only, so a client that expects AWS-style S3 semantics is usually the right fit.

Backblaze notes that the bucket’s region and endpoint should match, and that S3-compatible integrations may differ slightly from AWS S3 behavior. Keep that in mind if your backup software needs a bucket URL, a hostname-style endpoint, or an explicit path-style URL.

Estimate the ongoing bill before expanding the job

Estimate monthly storage cost from the repository’s stored size after deduplication and retention, multiplied by the provider’s current storage rate. Add request charges and any restore-transfer charge above included allowances. A 2 TB source does not guarantee a 2 TB bill: historical changed blocks, compressed data and retained versions affect the repository size.

For a sensible first purchase, protect irreplaceable photos, documents and application exports before uploading a replaceable media library. Measure the first week’s stored growth, then set a retention budget. B2 and another S3-compatible service can use the same client, but their billing rules and credentials are separate.

Which option should you choose?

Best default: restic to Backblaze B2

Choose this when you want a simple encrypted repository, a documented regional S3 endpoint, and a provider that explicitly recommends S3-compatible tooling for new integrations. It is the cleanest choice for a single Unraid server that needs off-site recovery without a complex backup platform.

Best for provider flexibility: restic to generic S3

Choose this when your storage vendor is already fixed by policy or when you may change providers later. Restic’s repository model is portable enough that the main variables are endpoint, credentials, and retention policy rather than the backup format itself.

Best when local restores still matter: local plus cloud

Choose this when the cloud repository is disaster insurance, not your only recovery path. A local copy gives you faster restores, while the cloud repository protects against site loss, theft, or a failed array. Restic’s copy-oriented repository model supports that layered recovery approach.

Questions answered

Should I use Backblaze B2 Native API or the S3-Compatible API for restic?

Use the S3-Compatible API in most cases. Backblaze says it is the recommended path for existing S3 tools and new integrations, and it uses Signature Version 4, which matches how S3 clients typically authenticate.

What endpoint do I enter for Backblaze B2?

Use the regional endpoint format Backblaze documents: s3.<region>.backblazeb2.com. Backblaze says the endpoint must match the bucket’s region and that the API accepts only HTTPS.

Do I need a separate repository password if I already have a bucket key?

Yes. Restic encrypts the repository, so the repository password is separate from the provider credential. The bucket key gets you to the storage; the restic password protects the backup contents themselves.

What should I run after a backup finishes?

Run a restore test to a separate path, then run check on the repository, and keep forget plus prune aligned with your retention policy. Restic documents these as distinct operations rather than one combined command.

Is Backblaze Computer Backup the same thing as B2 object storage?

No. Backblaze separates Computer Backup from Backblaze B2 Cloud Storage. For an Unraid repository target, you want B2 object storage accessed through the S3-Compatible API.

Can I rely on a file-level backup for databases inside appdata?

Only if the application can tolerate it or you have an application-aware export alongside the file backup. A filesystem copy preserves files, but it does not guarantee application-level consistency for live databases or queues.

Get the right Unraid plan

Sources and verification

Scroll to Top