Skip to content

Commit

Permalink
create the archive outside of the resources directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pb82 committed May 16, 2019
1 parent 7fe7fdd commit 13097a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image/tools/lib/component/resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 /<dest>/archives because that's where the next step expects it
mv ../resources_${TS}.tar.gz .
}

# Entry point
Expand Down

0 comments on commit 13097a4

Please sign in to comment.