┏━━━━━━━━━━━━━┓
jandaniel   ┃
┃     .link
┗━━━━━━━━━━━━━┛

Restic

I do use Restic for backups it works in a way compatible to my brain :-)

My complete backup script

#!/bin/bash

export AWS_ACCESS_KEY_ID={...}
export AWS_SECRET_ACCESS_KEY={...}

# To initialize empty repo
#restic -r s3:{...} init

# To show snapshots in repo
#restic -r s3:{...} \
#    --password-file=/Users/dan/Scripts/pass.txt \
#    --verbose \
#    snapshots

restic -r s3:{...} \
    --password-file=/Users/dan/Scripts/pass.txt \
    --verbose \
    backup /Users/dan/Gold

restic -r s3:{...} \
    --password-file=/Users/dan/Scripts/pass.txt \
    --verbose \
    forget \
    --keep-last=60 --keep-daily=60 --keep-weekly=60 --keep-monthly=60 --keep-yearly=60 \
    --prune

In /Users/dan/Scripts/pass.txt is just a password, nothing more.

Restic does support many storage options, but I am currently using S3 object storage from Hetzner.