#!/bin/sh

#!/bin/sh

ntfy() {
    bash /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
}

echo "creating backup with keep tag..."
restic \
  -r "/mnt/backups/restic/$(hostname)" \
  -p "/etc/ixvd/secrets/restic/$(hostname).secret" \
  backup \
  --tag keep \
  /srv /home /etc