From feff8400ffd62518e5a84bfa37f9295e99f8d11a Mon Sep 17 00:00:00 2001 From: kake26 Date: Sat, 17 Dec 2022 00:15:03 -0600 Subject: [PATCH] Ntfy support Added ntfy support --- backup.bash | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/backup.bash b/backup.bash index 854b4a7..5234ee7 100644 --- a/backup.bash +++ b/backup.bash @@ -13,9 +13,13 @@ export RESTIC_PASSWORD="$bkpwd" # Two dirs I want to keep backed up -restic -r sftp:restic@192.168.1.113:/home/restic backup /etc -restic -r sftp:restic@192.168.1.113:/home/restic backup /opt/scripts -restic -r sftp:restic@192.168.1.113:/home/restic backup /root -vnstat -i eth1.2 --exportdb > /tmp/vnstat.db -restic -r sftp:restic@192.168.1.113:/home/restic backup /tmp/vnstat.db -rm /tmp/vnstat.db \ No newline at end of file +/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /etc +curl -d "ETC backed up" 192.168.1.168:83/openwrt_backup +/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /usb/scripts +curl -d "Scripts backed up" 192.168.1.168:83/openwrt_backup +/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /root +curl -d "Root backed up" 192.168.1.168:83/openwrt_backup +vnstat -i wan --exportdb > /usb/tmp/vnstat.db +/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /usb/tmp/vnstat.db +rm /usb/tmp/vnstat.db +curl -d "Vnstat backed up" 192.168.1.168:83/openwrt_backup \ No newline at end of file