From 4d9dbb17b79f4d0de9b3832fc0be06f44f664d9b Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 6 Apr 2024 08:50:04 +0000 Subject: [PATCH] first commit --- other/backblaze/export-truenas-backups-backblaze.sh | 6 ++++++ .../restic-browser-truenas-backups-backblaze.sh | 8 ++++++++ .../backblaze/run-restic-truenas-backups-backblaze.sh | 10 ++++++++++ other/export-other-backups-hosthatch.sh | 4 ++++ other/run-restic-other-backups-to-hosthatch.sh | 8 ++++++++ proxmox/backblaze/export-proxmox-backups-backblaze.sh | 6 ++++++ .../restic-browser-proxmox-backups-backblaze.sh | 8 ++++++++ .../backblaze/run-restic-proxmox-backups-backblaze.sh | 10 ++++++++++ proxmox/export-proxmox-backups-hosthatch.sh | 4 ++++ proxmox/run-restic-proxmox-backups-to-hosthatch.sh | 8 ++++++++ rclone-sync-proxmox-datastore-to-hosthatch.sh | 3 +++ restic-password | 1 + storage/backblaze/export-storage-backups-backblaze.sh | 6 ++++++ .../restic-browser-storage-backups-backblaze.sh | 8 ++++++++ .../backblaze/run-restic-storage-backups-backblaze.sh | 10 ++++++++++ storage/export-storage-backups-hosthatch.sh | 4 ++++ storage/run-restic-storage-backups-to-hosthatch.sh | 8 ++++++++ 17 files changed, 112 insertions(+) create mode 100755 other/backblaze/export-truenas-backups-backblaze.sh create mode 100755 other/backblaze/restic-browser-truenas-backups-backblaze.sh create mode 100755 other/backblaze/run-restic-truenas-backups-backblaze.sh create mode 100755 other/export-other-backups-hosthatch.sh create mode 100755 other/run-restic-other-backups-to-hosthatch.sh create mode 100755 proxmox/backblaze/export-proxmox-backups-backblaze.sh create mode 100755 proxmox/backblaze/restic-browser-proxmox-backups-backblaze.sh create mode 100755 proxmox/backblaze/run-restic-proxmox-backups-backblaze.sh create mode 100755 proxmox/export-proxmox-backups-hosthatch.sh create mode 100755 proxmox/run-restic-proxmox-backups-to-hosthatch.sh create mode 100755 rclone-sync-proxmox-datastore-to-hosthatch.sh create mode 100644 restic-password create mode 100755 storage/backblaze/export-storage-backups-backblaze.sh create mode 100755 storage/backblaze/restic-browser-storage-backups-backblaze.sh create mode 100755 storage/backblaze/run-restic-storage-backups-backblaze.sh create mode 100755 storage/export-storage-backups-hosthatch.sh create mode 100755 storage/run-restic-storage-backups-to-hosthatch.sh diff --git a/other/backblaze/export-truenas-backups-backblaze.sh b/other/backblaze/export-truenas-backups-backblaze.sh new file mode 100755 index 0000000..48f85c2 --- /dev/null +++ b/other/backblaze/export-truenas-backups-backblaze.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:truenas-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password diff --git a/other/backblaze/restic-browser-truenas-backups-backblaze.sh b/other/backblaze/restic-browser-truenas-backups-backblaze.sh new file mode 100755 index 0000000..15533f0 --- /dev/null +++ b/other/backblaze/restic-browser-truenas-backups-backblaze.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:truenas-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +Restic-Browser diff --git a/other/backblaze/run-restic-truenas-backups-backblaze.sh b/other/backblaze/run-restic-truenas-backups-backblaze.sh new file mode 100755 index 0000000..7f5e5ed --- /dev/null +++ b/other/backblaze/run-restic-truenas-backups-backblaze.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:truenas-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +restic unlock +restic backup /mnt/truenas-backups --no-cache -v +restic cache --cleanup diff --git a/other/export-other-backups-hosthatch.sh b/other/export-other-backups-hosthatch.sh new file mode 100755 index 0000000..356cf48 --- /dev/null +++ b/other/export-other-backups-hosthatch.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/other-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password diff --git a/other/run-restic-other-backups-to-hosthatch.sh b/other/run-restic-other-backups-to-hosthatch.sh new file mode 100755 index 0000000..0064fb2 --- /dev/null +++ b/other/run-restic-other-backups-to-hosthatch.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/other-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password + +restic unlock +restic backup /mnt/backups --no-cache -v +restic cache --cleanup diff --git a/proxmox/backblaze/export-proxmox-backups-backblaze.sh b/proxmox/backblaze/export-proxmox-backups-backblaze.sh new file mode 100755 index 0000000..90cc9cb --- /dev/null +++ b/proxmox/backblaze/export-proxmox-backups-backblaze.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:proxmox-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password diff --git a/proxmox/backblaze/restic-browser-proxmox-backups-backblaze.sh b/proxmox/backblaze/restic-browser-proxmox-backups-backblaze.sh new file mode 100755 index 0000000..f43e2c7 --- /dev/null +++ b/proxmox/backblaze/restic-browser-proxmox-backups-backblaze.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:proxmox-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +Restic-Browser diff --git a/proxmox/backblaze/run-restic-proxmox-backups-backblaze.sh b/proxmox/backblaze/run-restic-proxmox-backups-backblaze.sh new file mode 100755 index 0000000..7e629d5 --- /dev/null +++ b/proxmox/backblaze/run-restic-proxmox-backups-backblaze.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:proxmox-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +restic unlock +restic backup /mnt/proxmox-backups --no-cache -v +restic cache --cleanup diff --git a/proxmox/export-proxmox-backups-hosthatch.sh b/proxmox/export-proxmox-backups-hosthatch.sh new file mode 100755 index 0000000..b6428a1 --- /dev/null +++ b/proxmox/export-proxmox-backups-hosthatch.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/proxmox-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password diff --git a/proxmox/run-restic-proxmox-backups-to-hosthatch.sh b/proxmox/run-restic-proxmox-backups-to-hosthatch.sh new file mode 100755 index 0000000..8472ae0 --- /dev/null +++ b/proxmox/run-restic-proxmox-backups-to-hosthatch.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/proxmox-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password + +restic unlock +restic backup /mnt/proxmox-backups --no-cache -v +restic cache --cleanup diff --git a/rclone-sync-proxmox-datastore-to-hosthatch.sh b/rclone-sync-proxmox-datastore-to-hosthatch.sh new file mode 100755 index 0000000..772734a --- /dev/null +++ b/rclone-sync-proxmox-datastore-to-hosthatch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +rclone sync /mnt/proxmox-backups/ hosthatch-backup:/backups/proxmox-datastore -P diff --git a/restic-password b/restic-password new file mode 100644 index 0000000..e90f3fc --- /dev/null +++ b/restic-password @@ -0,0 +1 @@ +9S*Mw4RPG6dKeAcsq6DjUd diff --git a/storage/backblaze/export-storage-backups-backblaze.sh b/storage/backblaze/export-storage-backups-backblaze.sh new file mode 100755 index 0000000..20d4db2 --- /dev/null +++ b/storage/backblaze/export-storage-backups-backblaze.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:storage-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password diff --git a/storage/backblaze/restic-browser-storage-backups-backblaze.sh b/storage/backblaze/restic-browser-storage-backups-backblaze.sh new file mode 100755 index 0000000..cab21a9 --- /dev/null +++ b/storage/backblaze/restic-browser-storage-backups-backblaze.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:storage-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +Restic-Browser diff --git a/storage/backblaze/run-restic-storage-backups-backblaze.sh b/storage/backblaze/run-restic-storage-backups-backblaze.sh new file mode 100755 index 0000000..11c4b17 --- /dev/null +++ b/storage/backblaze/run-restic-storage-backups-backblaze.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export B2_ACCOUNT_ID="00046d139d73904000000000e" +export B2_ACCOUNT_KEY="K000vYECcbbPFlLOq+23F2VKYtXR9zM" +export RESTIC_REPOSITORY="b2:akanealw-restic-backups:storage-backups" +export RESTIC_PASSWORD_FILE=/home/akanealw/restic/restic-password + +restic unlock +restic backup /mnt/storage-backups --no-cache -v +restic cache --cleanup diff --git a/storage/export-storage-backups-hosthatch.sh b/storage/export-storage-backups-hosthatch.sh new file mode 100755 index 0000000..b12fc12 --- /dev/null +++ b/storage/export-storage-backups-hosthatch.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/storage-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password diff --git a/storage/run-restic-storage-backups-to-hosthatch.sh b/storage/run-restic-storage-backups-to-hosthatch.sh new file mode 100755 index 0000000..8270e90 --- /dev/null +++ b/storage/run-restic-storage-backups-to-hosthatch.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTIC_REPOSITORY="sftp:root@hosthatch-backup:/backups/storage-backups" +export RESTIC_PASSWORD_FILE=/root/scripts/backups/restic-password + +restic unlock +restic backup /mnt/storage --no-cache -v +restic cache --cleanup