#!/bin/sh

export RESTIC_REPOSITORY="s3:http://192.168.0.203:9000/backups/$(cat /etc/hostname)"
export AWS_ACCESS_KEY_ID=$(pa s "minio key")
export AWS_SECRET_ACCESS_KEY=$(pa s "minio secret")
export RESTIC_PASSWORD_COMMAND="pa s restic"

restic backup $HOME --exclude-file=$HOME/.config/restic/excludes.txt
