Skip to content

Instantly share code, notes, and snippets.

@aleksasiriski
Last active September 13, 2026 10:54
Show Gist options
  • Select an option

  • Save aleksasiriski/186e523e2c4fbcd37e35574aa684a4ce to your computer and use it in GitHub Desktop.

Select an option

Save aleksasiriski/186e523e2c4fbcd37e35574aa684a4ce to your computer and use it in GitHub Desktop.
`resticprofile` - my config for backing up personal computers (Fedora Atomic)

How to setup resticprofile on Fedora Atomic

Install restic

rpm-ostree install restic --apply-live

Install resticprofile

curl -LO https://raw.githubusercontent.com/creativeprojects/resticprofile/master/install.sh && \
chmod +x install.sh && \
sudo ./install.sh -b /usr/local/bin && \
rm install.sh

Configure resticprofile

In /etc/resticprofile/profiles.yaml:

# yaml-language-server: $schema=https://creativeprojects.github.io/resticprofile/jsonschema/config.json

version: "1"

default:
  repository: "s3:https://<S3_ENDPOINT>/<S3_BUCKET_NAME>"
  initialize: false # WARN: Run `sudo resticprofile init` manually
  lock: "/tmp/resticprofile-default.lock"
  env:
    RESTIC_PASSWORD: "<RESTIC_ENCRYPTION_PASSWORD>"
    AWS_ACCESS_KEY_ID: "<S3_BUCKET_ACCESS_KEY_ID>"
    AWS_SECRET_ACCESS_KEY: "<S3_BUCKET_SECRET_ACCESS_KEY>"
  exclude-caches: true
  backup:
    source-base: "/home/<USERNAME>"
    source:
      - "Desktop"
      - "Documents"
      - "Music"
      - "Pictures"
      - "Videos"
    schedule: "hourly"
    schedule-after-network-online: true
    schedule-permission: "user"
    schedule-priority: "background"
  retention:
    before-backup: false
    after-backup: true
    keep-last: 10
    keep-hourly: 72
    keep-daily: 14
    keep-weekly: 4
    keep-monthly: 6
    keep-yearly: 1
    prune: true

Enable systemd service

sudo resticprofile schedule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment