Created
February 19, 2017 21:40
-
-
Save bdunbar/d9fa3470ea8dde99ce47628ecb1d7896 to your computer and use it in GitHub Desktop.
Backup script for OpenBazaar server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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