From 0894fb51329e81786b025dd75fc7b033c30ca1ac Mon Sep 17 00:00:00 2001 From: Ralf-Peter Wolff Date: Sat, 28 Dec 2024 19:06:51 +0100 Subject: [PATCH] =?UTF-8?q?pbsbackup.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pbsbackup.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pbsbackup.sh diff --git a/pbsbackup.sh b/pbsbackup.sh new file mode 100644 index 0000000..626b57b --- /dev/null +++ b/pbsbackup.sh @@ -0,0 +1,20 @@ +```bash +#!/bin/bash + +PBS_PASSWORD='ePVNmzbEpfaf65' +PBS_REPOSITORY=root@pam@rwolff.homelinux.net:ebesch2nfs +PBS_FINGERPRINT='3f:0d:1e:1c:d1:1f:80:f1:e9:3c:ad:bd:ca:32:f4:8c:92:7e:6c:01:9f:b3:fb:7c:c8:66:e6:bb:04:33:74:a1' +export PBS_PASSWORD +export PBS_FINGERPRINT +export PBS_REPOSITORY +cd /root +cp docker-compose.yml Caddyfile zitadel.env dashboard.env \ + turnserver.conf management.json backup/ +docker compose stop management +docker compose cp -a management:/var/lib/netbird/ backup/ +docker compose start management +proxmox-backup-client login +proxmox-backup-client backup root.pxar:/root/backup \ + --ns cloud && \ +proxmox-backup-client prune host/debian-2gb-hel1-2 --keep-daily 14 +``` \ No newline at end of file