Deploy restic

Recover a dated copy of a server directory from an encrypted repository, even when the machine that wrote the backup is unavailable.

USD 299 a month on Team for one server, with unlimited apps and deployment automation through the Pilae Agent. Pilae Cloud machines are rented separately.

Start deploymentInfrastructure

Runs on
Your own hardware or a Pilae Cloud region you choose
Replaces
Scheduled file-copy jobs
Licence
BSD-2-Clause
Your serversAdvisoryPatchSandboxPolicyDeployLive

restic among the engineering and security apps

Source code, container images, secrets and security events. The systems an auditor asks about first, kept where you can show them.

restic system requirements

Before anything is deployed, this is what has to exist. We size it with you in the first session, and we say so when your own hardware is already enough.

Where it runs
Your hardwarebare metal, VMware, Proxmox, Hyper-V or Kubernetes, in your datacentrePilae Cloud regionzur1 fra1 fal1 gra1 ams1 hel1 …machines dedicated to you, in the region your contract namesprivate meshaccess by identityencrypted tunnelencrypted, offsiteresticpinned, patched, watched01Source hostrestic binary and readablesource paths02RepositoryFilesystem or supportedremote backend03Recovery credentialsStorage access andrepository password04Restore targetSeparate host and stagingdiskYour teamthe people you allowYour identity providerKeycloak or Entra IDPilae Agentplans, asks, applies, recordsPilae consolechange policy and logYour backup targetstorage you own, at asecond sitea second datacentre,same jurisdictionYour hardwareyour servers, your networkPilae Cloud regionzur1 fra1 fal1 gra1 …private meshby identitytunnelencryptedresticpinned, patched, watched01Source hostrestic binary andreadable source paths02RepositoryFilesystem orsupported remote bac…03RecoverycredentialsStorage access and r…04Restore targetSeparate host andstaging diskYour teamthe people you allowYour sign-inKeycloak, Entra IDPilae Agentplans, asks, applies, recordsPilae consolepolicy and logYour backupsa second sitea second datacentre
On your hardware: the Pilae Agent installs restic and what it needs on the machines you choose and runs beside it, and encrypted backups go to storage you own at a second location you pick.In a Pilae Cloud region: the same setup on machines dedicated to you, in the region your contract names, with encrypted backups in a second datacentre inside the same jurisdiction.
All 4 requirements, and why each is there
  1. Source hostrestic binary and readable source pathsInclude mounts and data owners in the inventory. Budget the initial scan and first transfer against a window agreed with the application team.
  2. RepositoryFilesystem or supported remote backendSize for changed data across the retention window. Measure writes during a representative busy period and leave space for maintenance.
  3. Recovery credentialsStorage access and repository passwordArrange authorised retrieval when the source host is lost. Verify the storage operator and repository custodian can supply their respective credentials during a drill.
  4. Restore targetSeparate host and staging diskReserve space for the largest workload that must be recovered together, including temporary space to import an application export.

Running restic in production: what it takes

  1. Check that the expected snapshot exists

    Track the backup exit status and the newest snapshot for each agreed host and path. Investigate a partial backup even when it leaves a snapshot behind.

  2. Exercise repository reads

    Schedule repository checks and budget time for reading stored data. On remote storage, include request volume, read charges and bandwidth in the maintenance window.

  3. Recover one business record

    Restore to an isolated destination. Have the owner open a recovered file through their ordinary account or import the application export into a test instance. Record the snapshot ID, elapsed time and acceptance result.

Deployment reference

Select a snapshot by source before restoring

restic -r /mnt/backup/repository snapshots --host records-01 --path /srv/records
restic -r /mnt/backup/repository ls SNAPSHOT_ID
restic -r /mnt/backup/repository restore SNAPSHOT_ID --target /srv/recovery/drill
Adapted from the upstream repository and restore references. Substitute the agreed source path, repository and snapshot ID. The recovery host needs an empty target directory with sufficient free space.

Migrating from Scheduled file-copy jobs to restic

A nightly copy can contain only the latest state of a directory. Inventory the dates the old job can actually recover and keep those copies readable through their existing retention period. Start the restic history with a baseline of the source at a recorded time.

Moving from Scheduled file-copy jobs to restic, step by step

  1. Choose a recovery fixture: Select a small directory with a known file, its checksum and its intended owner. Include a file changed after the first backup so operators must choose the right date to retrieve the original.
  2. Run both schedules: Leave the existing copy job active while restic backs up the same agreed source. Compare the included paths and excluded mounts. For a changing application, agree on a consistent export or filesystem snapshot before comparing results.
  3. Recover using the handover record: Give a second operator a clean host. Have them retrieve credentials, identify the baseline by host and path, restore it into a separate directory and compare the fixture checksum, permissions and modification time.
  4. Switch after an accepted restore: Keep the old recovery instructions, copies and schedule configuration. If a subsequent drill fails, resume the old job to a fresh destination that preserves historical copies, record the coverage gap and investigate the failed recovery point.

What restic is, and who runs it

Recover the signed drawing that a later edit replaced

Suppose the drawing attached to a maintenance order changed on Tuesday. Engineering wants Monday’s signed version, while production still needs Tuesday’s file. Select Monday’s snapshot using the host and the original path. Restore into a separate working directory and let the engineer check the drawing number and revision before releasing the recovered copy. This tests a concrete recovery point without interrupting the current job. Working with restic repositories · Restoring from backup

The credentials used to reach the storage backend and the credential used to decrypt the repository have different jobs. A recovery drill should exercise both. If the target is Garage object storage, the restic and Garage restore guide walks a second operator through snapshot selection, endpoint access and verification on a clean client. Upstream repository setup

Read the full briefFold the brief

Scope the recovery window

The amount of data written each night and the amount required after a failure can differ greatly. A small overnight change to the drawing library may fit a short backup window. Recovering the complete library onto replacement storage can require a much longer transfer. Bring both figures when requesting a deployment, along with a list of the files needed first to resume production. The restic project distributes the client under the BSD two-clause licence.

To compare how another deduplicating backup tool handles archive retention and recovery keys, see the Borg deployment guide. Test the same restore set with both tools.

What the managed plans cover

Compare the operating responsibilities included in Pilae’s plans. How the platform does it.

Ours

  • A pinned version: A version we have run, not whatever latest resolves to that day.
  • A runbook: What it depends on, how it fails, what to do about it. In your repository.
  • Daily backups: Encrypted and offsite, and on Business and Enterprise restored every month. A backup nobody has restored is a file.
  • A patch window: The agent applies security updates automatically in your window, with a rollback ready.
  • Continuous monitoring: Every endpoint probed on the minute. Alerts reach your team, and on Business and Enterprise a Pilae engineer too.

Yours

  • The credentials: You hold them. Ours are separate, named, logged and revocable with one command.
  • The change policy: The agent applies updates automatically in your window. You can require human approval for selected changes or for every update.
  • The exit: The machines, data, deployment configuration and runbook are already yours. Nothing stops when our access does.

Who runs it

restic runs on every plan. Team is USD 299 a month for up to 3 servers (yours, or Pilae Cloud machines at their own price) and unlimited apps, with no charge per server.

Compare the plans

restic: common questions

What if the source machine held the only repository password?

Access to the storage account alone cannot decrypt the backups. Keep an independently recoverable repository credential and test it from a second host before accepting the deployment.

Can we back up an active database directory?

Ask the database owner for a supported export or consistency procedure. A file backup can preserve files from different points during a transaction. Validate the procedure by opening the recovered database and reconciling an agreed record.

Can an operator restore the version from before a bad edit?

Yes, if a retained snapshot contains that version. Record the host, source path and time of the edit, choose an earlier snapshot and recover into a separate directory before replacing the live document.

What should we prepare before deployment?

List source hosts, data volumes, change rates, retention periods, the proposed storage location and the longest acceptable recovery time. Identify who can approve access to the storage and who can authorise retrieval of the decryption credential.

Talk to an engineer about your restic

Tell us about the deployment you already have, or the one you are about to start.

Start deployment

Compare plans and prices, or write to us with a question this page leaves open.

Plan your restic deployment

Architectures