15 lines
No EOL
336 B
Bash
Executable file
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 |