rpm-ostree install restic --apply-livecurl -LO https://raw.githubusercontent.com/creativeprojects/resticprofile/master/install.sh && \
chmod +x install.sh && \
sudo ./install.sh -b /usr/local/bin && \
rm install.shIn /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: truesudo resticprofile schedule