Ntfy support
Added ntfy support
This commit is contained in:
parent
d39f56dafc
commit
feff8400ff
1 changed files with 10 additions and 6 deletions
16
backup.bash
16
backup.bash
|
@ -13,9 +13,13 @@ export RESTIC_PASSWORD="$bkpwd"
|
||||||
|
|
||||||
# Two dirs I want to keep backed up
|
# Two dirs I want to keep backed up
|
||||||
|
|
||||||
restic -r sftp:restic@192.168.1.113:/home/restic backup /etc
|
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /etc
|
||||||
restic -r sftp:restic@192.168.1.113:/home/restic backup /opt/scripts
|
curl -d "ETC backed up" 192.168.1.168:83/openwrt_backup
|
||||||
restic -r sftp:restic@192.168.1.113:/home/restic backup /root
|
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /usb/scripts
|
||||||
vnstat -i eth1.2 --exportdb > /tmp/vnstat.db
|
curl -d "Scripts backed up" 192.168.1.168:83/openwrt_backup
|
||||||
restic -r sftp:restic@192.168.1.113:/home/restic backup /tmp/vnstat.db
|
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /root
|
||||||
rm /tmp/vnstat.db
|
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
|
Loading…
Add table
Add a link
Reference in a new issue