Skip to content

Instantly share code, notes, and snippets.

View cullan's full-sized avatar

Cullan Springstead cullan

  • Stardog Union
  • Missouri, USA
View GitHub Profile
@cullan
cullan / nanobox_latest_backup.sh
Last active November 20, 2019 08:59
Nanobox fetch latest backup
#!/bin/bash
# grab the latest backup from the warehouse data hoarder
# this file goes in the root of the nanobox project.
# it assumes you followed the backup guide:
# https://content.nanobox.io/data-safety-with-nanobox-backup-and-recovery/
port=7410
address="https://localhost:$port/blobs"
token=$(nanobox evar ls | awk '/DATA_HOARDER_TOKEN/ {print $3}')