Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create the archive outside of the resources directory #41

Merged
merged 1 commit into from
May 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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