Skip to content

Commit

Permalink
Remove compressed database file after extraction
Browse files Browse the repository at this point in the history
Doing this saves ~100GiB per image upload as of 2017/09/15.
  • Loading branch information
nlopes committed Sep 15, 2017
1 parent e1545d4 commit a6c2040
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/draupnir-finalise-image
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ sudo mkdir "${UPLOAD_PATH}/tmp"
sudo sh -c "tar xf ${UPLOAD_PATH}/*.tar* -C ${UPLOAD_PATH}/tmp"
sudo sh -c "mv ${UPLOAD_PATH}/tmp/* ${UPLOAD_PATH}/"
sudo rmdir "${UPLOAD_PATH}/tmp"
sudo rm -f "${UPLOAD_PATH}/*.tar" # remove the compressed backup file

sudo rm -f "${UPLOAD_PATH}/postmaster.pid"
sudo rm -f "${UPLOAD_PATH}/postmaster.opts"
Expand Down

0 comments on commit a6c2040

Please sign in to comment.