From 13097a441ef35bbd1250fe37d86c73142bdf2826 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Thu, 16 May 2019 17:48:44 +0200 Subject: [PATCH] create the archive outside of the resources directory --- image/tools/lib/component/resources.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image/tools/lib/component/resources.sh b/image/tools/lib/component/resources.sh index a6dc14e..878095c 100644 --- a/image/tools/lib/component/resources.sh +++ b/image/tools/lib/component/resources.sh @@ -88,8 +88,10 @@ function backup_cluster_resource { function archive_files { dest=$1 cd ${dest}/archives - tar --exclude='*.tar.gz' --force-local -czf resources_${TS}.tar.gz . + tar --exclude='*.tar.gz' --force-local -czf ../resources_${TS}.tar.gz . rm -f *.yaml.gz + # Move the archive back to //archives because that's where the next step expects it + mv ../resources_${TS}.tar.gz . } # Entry point