Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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