From 87f5e39040e91ffccdff8fd073d06efe1b79399a Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 3 May 2024 18:33:46 +0200 Subject: [PATCH] fix(nextcloud): #35 Include namespace in cp --- scripts/nextcloud/backup-database.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nextcloud/backup-database.sh b/scripts/nextcloud/backup-database.sh index 36f0349..da3e4a9 100755 --- a/scripts/nextcloud/backup-database.sh +++ b/scripts/nextcloud/backup-database.sh @@ -67,7 +67,7 @@ k3s kubectl exec "${database_container}" --namespace "${namespace}" -- env $(cat # Files backup for file in 'config' 'themes'; do printf "Copying %s\n" "${file}" - k3s kubectl cp "${base_container}":"/var/www/html/${file}" "${destination}" + k3s kubectl --namespace "${namespace}" cp "${base_container}":"/var/www/html/${file}" "${destination}" done # Turn off maintenance mode