Skip to content

Instantly share code, notes, and snippets.

@skwp
Created October 2, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skwp/417a3f0822f8d15ce06d416d856bee08 to your computer and use it in GitHub Desktop.
Save skwp/417a3f0822f8d15ce06d416d856bee08 to your computer and use it in GitHub Desktop.
if [[ -z "$TAG_restore_backup" ]]; then
log "Tag restore_backup not set. Not restoring from backup, this is a clean node."
else
log "Restoring backup from $TAG_restore_backup"
/usr/local/bin/aws s3 cp $TAG_restore_backup /tmp
cd /
tar zxvf /tmp/bitcoin.tgz
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment