No Firebase backup anymore

This commit is contained in:
2020-02-23 11:52:29 +01:00
parent 8655e1d538
commit f6ff6e3a96

View File

@@ -42,12 +42,3 @@ ROUND="$(($(date +%_j) % 10))"
"$HOME" |
gsutil cp - \
"gs://$BUCKET/$(hostname)/$(whoami)/backup-$ROUND.tar"
if [ $# -eq 2 ]; then
PROJECT="$2"
# Also backup Firebase Database.
firebase --project="$PROJECT" database:get / | \
gzip | \
gsutil cp - \
"gs://$BUCKET/$PROJECT/firebase-database-$ROUND.gz"
fi