neb/tools/server-backup.sh
2023-10-26 14:30:45 +02:00

15 lines
No EOL
336 B
Bash
Executable file

#!/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