Skip to content

Instantly share code, notes, and snippets.

@bdunbar
Created February 19, 2017 21:40
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 bdunbar/d9fa3470ea8dde99ce47628ecb1d7896 to your computer and use it in GitHub Desktop.
Save bdunbar/d9fa3470ea8dde99ce47628ecb1d7896 to your computer and use it in GitHub Desktop.
Backup script for OpenBazaar server
#!/bin/bash
# backup of Open Bazaar '.' directory
set -u
set -e
TIME=`date +%b-%d-%y`
FILENAME=OB-backup-$TIME.tar.gz
SRCDIR={{ openbazaar_user_home_directory }}
DESDIR={{ openbazaar_user_home_directory }}
tar -zcf $DESDIR/$FILENAME $SRCDIR/.openbazaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment