From f1f4364c636c2b8f0c34e84a2ece6d308d640c70 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 27 Nov 2024 04:07:14 +0100 Subject: [PATCH] Back up extra files using `getExtraBackupPatterns` --- scripts/Common/Software/docker/services/drone/main.fish | 4 ++-- scripts/Common/Software/docker/services/forgejo/main.fish | 4 ---- scripts/Common/Software/docker/services/jellyfin/main.fish | 4 ++-- scripts/Common/Software/docker/services/minecraft/main.fish | 4 ++-- scripts/Common/Software/docker/services/nextcloud/main.fish | 4 ++++ scripts/Common/Software/docker/services/trackmania/main.fish | 4 ++-- scripts/Common/Software/docker/services/vaultwarden/main.fish | 4 ---- scripts/Common/Software/docker/services/woodpecker/main.fish | 4 ++-- 8 files changed, 14 insertions(+), 18 deletions(-) diff --git a/scripts/Common/Software/docker/services/drone/main.fish b/scripts/Common/Software/docker/services/drone/main.fish index 8156437c..479169e1 100755 --- a/scripts/Common/Software/docker/services/drone/main.fish +++ b/scripts/Common/Software/docker/services/drone/main.fish @@ -112,8 +112,8 @@ begin printf "%s\0" "$name-ci" / end - function getBackupArgs - printf "%s\n" --hidden --no-ignore "data|\.secret\.|\.overrides\." (getServiceRoot $argv) + function getExtraBackupPatterns + echo "\.secret\.env\$" end runInstaller --force $argv diff --git a/scripts/Common/Software/docker/services/forgejo/main.fish b/scripts/Common/Software/docker/services/forgejo/main.fish index 751b79be..56dfc6b3 100755 --- a/scripts/Common/Software/docker/services/forgejo/main.fish +++ b/scripts/Common/Software/docker/services/forgejo/main.fish @@ -94,9 +94,5 @@ begin printf "%s\0" "$_flag_name" / end - function getBackupArgs -V root - printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv) - end - runInstaller --force $argv end diff --git a/scripts/Common/Software/docker/services/jellyfin/main.fish b/scripts/Common/Software/docker/services/jellyfin/main.fish index 90c9a972..af26845a 100755 --- a/scripts/Common/Software/docker/services/jellyfin/main.fish +++ b/scripts/Common/Software/docker/services/jellyfin/main.fish @@ -136,8 +136,8 @@ begin end end - function getBackupArgs -V root - printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv) + function getExtraBackupPatterns + echo "^proton\.env\$" end runInstaller --force $argv diff --git a/scripts/Common/Software/docker/services/minecraft/main.fish b/scripts/Common/Software/docker/services/minecraft/main.fish index 7ed900f0..5b3895ef 100644 --- a/scripts/Common/Software/docker/services/minecraft/main.fish +++ b/scripts/Common/Software/docker/services/minecraft/main.fish @@ -65,8 +65,8 @@ begin function getServiceLocations end - function getBackupArgs - printf "%s\n" --hidden --no-ignore "config|data|mods|worlds|\.properties\$" --exclude "docker-compose.yml" (getServiceRoot $argv) + function getExtraBackupPatterns + echo "\.properties\$|^(config|mods)\$" end runInstaller --force $argv diff --git a/scripts/Common/Software/docker/services/nextcloud/main.fish b/scripts/Common/Software/docker/services/nextcloud/main.fish index 82299a13..14e8a009 100644 --- a/scripts/Common/Software/docker/services/nextcloud/main.fish +++ b/scripts/Common/Software/docker/services/nextcloud/main.fish @@ -100,5 +100,9 @@ begin printf "%s\0" "$name" / end + function getExtraBackupPatterns + echo "^(cache|db|nextcloud)\.env\$" + end + runInstaller --force $argv end diff --git a/scripts/Common/Software/docker/services/trackmania/main.fish b/scripts/Common/Software/docker/services/trackmania/main.fish index 6db06a94..0d3dc1fe 100755 --- a/scripts/Common/Software/docker/services/trackmania/main.fish +++ b/scripts/Common/Software/docker/services/trackmania/main.fish @@ -29,8 +29,8 @@ begin function getServiceLocations end - function getBackupArgs - printf "%s\n" --hidden --no-ignore "^docker-compose\.(.*\.)\?.overrides.yml|data\$" (getServiceRoot $argv) + function getExtraBackupPatterns + echo "^docker-compose\.core\.overrides\.yml\$" end runInstaller --force $argv --name "tm-forever" diff --git a/scripts/Common/Software/docker/services/vaultwarden/main.fish b/scripts/Common/Software/docker/services/vaultwarden/main.fish index 50344ba2..c96ba805 100644 --- a/scripts/Common/Software/docker/services/vaultwarden/main.fish +++ b/scripts/Common/Software/docker/services/vaultwarden/main.fish @@ -36,9 +36,5 @@ begin printf "%s\0" "$_flag_name" / end - function getBackupArgs - printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" (getServiceRoot $argv) - end - runInstaller --force $argv end diff --git a/scripts/Common/Software/docker/services/woodpecker/main.fish b/scripts/Common/Software/docker/services/woodpecker/main.fish index e66625e9..7ecec926 100755 --- a/scripts/Common/Software/docker/services/woodpecker/main.fish +++ b/scripts/Common/Software/docker/services/woodpecker/main.fish @@ -108,8 +108,8 @@ begin printf "%s\0" "$name-ci" / end - function getBackupArgs - printf "%s\n" --hidden --no-ignore "data|\.secret\.|docker-compose\.overrides\.yml" (getServiceRoot $argv) + function getExtraBackupPatterns + echo "\.secret\.env\$" end runInstaller --force $argv