-
-
Save cyhook/2e15cf30518a788c19b65c93acb9c09c to your computer and use it in GitHub Desktop.
Revisions
-
piotr1212 created this gist
Nov 16, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ cat /usr/share/grafana/grafana-backup.sh #!/bin/bash DB="/var/lib/grafana/grafana.db" BACKUP="/data/backup/grafana/grafana.db-$(date +%Y%m%d).bck" SQLITE=/usr/bin/sqlite3 ZIP=/bin/gzip ${SQLITE} ${DB} ".backup ${BACKUP}" ${ZIP} ${BACKUP}