From ea8f3913b8fc04c1f3a4e095183e22db06daba3e Mon Sep 17 00:00:00 2001 From: akanealw Date: Wed, 8 Nov 2023 23:39:26 -0600 Subject: [PATCH] added cronicle scripts --- cronicle/cronicle-backup-archives-bookmarks.sh | 6 ++++++ cronicle/cronicle-check-wireguard-wg1.sh | 6 ++++++ cronicle/cronicle-docker-image-prune.sh | 6 ++++++ ...ronicle-ping-before-copy-backup-to-truenas.sh | 6 ++++++ .../cronicle-restart-gluetun-and-services.sh | 16 ++++++++++++++++ cronicle/cronicle-wrestic-backup-to-truenas.sh | 6 ++++++ 6 files changed, 46 insertions(+) create mode 100644 cronicle/cronicle-backup-archives-bookmarks.sh create mode 100644 cronicle/cronicle-check-wireguard-wg1.sh create mode 100644 cronicle/cronicle-docker-image-prune.sh create mode 100644 cronicle/cronicle-ping-before-copy-backup-to-truenas.sh create mode 100644 cronicle/cronicle-restart-gluetun-and-services.sh create mode 100644 cronicle/cronicle-wrestic-backup-to-truenas.sh diff --git a/cronicle/cronicle-backup-archives-bookmarks.sh b/cronicle/cronicle-backup-archives-bookmarks.sh new file mode 100644 index 0000000..56c18d0 --- /dev/null +++ b/cronicle/cronicle-backup-archives-bookmarks.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ssh -i ~/.ssh/proxyserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.4 \ +"/home/akanealw/scripts/backup-archives-bookmarks.sh" diff --git a/cronicle/cronicle-check-wireguard-wg1.sh b/cronicle/cronicle-check-wireguard-wg1.sh new file mode 100644 index 0000000..746070c --- /dev/null +++ b/cronicle/cronicle-check-wireguard-wg1.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ssh -i ~/.ssh/proxyserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.4 \ +"/home/akanealw/scripts/check-wireguard-wg1.sh" diff --git a/cronicle/cronicle-docker-image-prune.sh b/cronicle/cronicle-docker-image-prune.sh new file mode 100644 index 0000000..aff71d2 --- /dev/null +++ b/cronicle/cronicle-docker-image-prune.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ssh -i ~/.ssh/proxyserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.4 \ +"/home/akanealw/scripts/docker-image-prune.sh" diff --git a/cronicle/cronicle-ping-before-copy-backup-to-truenas.sh b/cronicle/cronicle-ping-before-copy-backup-to-truenas.sh new file mode 100644 index 0000000..183cccc --- /dev/null +++ b/cronicle/cronicle-ping-before-copy-backup-to-truenas.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ssh -i ~/.ssh/proxyserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.4 \ +"/home/akanealw/scripts/ping-before-copy-backups-to-truenas.sh" diff --git a/cronicle/cronicle-restart-gluetun-and-services.sh b/cronicle/cronicle-restart-gluetun-and-services.sh new file mode 100644 index 0000000..05df5c1 --- /dev/null +++ b/cronicle/cronicle-restart-gluetun-and-services.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +ssh -i ~/.ssh/dockerserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.30 \ +"docker restart gluetun \ +&& echo "gluetun restarting" \ +&& sleep 45 \ +&& docker restart jdownloader \ +&& echo "jdownloader restarting" \ +&& sleep 5 \ +&& docker restart qbittorrent \ +&& echo "qbittorrent restarting" \ +&& sleep 5 \ +&& docker restart sabnzbd \ +&& echo "sabnzbd restarting"" diff --git a/cronicle/cronicle-wrestic-backup-to-truenas.sh b/cronicle/cronicle-wrestic-backup-to-truenas.sh new file mode 100644 index 0000000..556f424 --- /dev/null +++ b/cronicle/cronicle-wrestic-backup-to-truenas.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +ssh -i ~/.ssh/proxyserver \ +-o StrictHostKeyChecking=no \ +akanealw@192.168.1.4 \ +"/home/akanealw/scripts/wrestic-backup-to-truenas.sh"