neb/tools/server-backup.sh

15 lines
336 B
Bash
Raw Normal View History

2023-10-26 14:30:45 +02:00
#!/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