mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-04 06:51:45 -04:00
Add firebase storage backup script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -84,3 +84,4 @@ email-preview
|
||||
*.tfstate
|
||||
*.tfstate.backup
|
||||
*.terraform
|
||||
/backups/firebase/storage/data/
|
||||
|
||||
18
backups/firebase/storage/backup.sh
Executable file
18
backups/firebase/storage/backup.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
PROJECT=compass-130ba
|
||||
|
||||
TIMESTAMP=$(date +"%F_%H-%M-%S")
|
||||
|
||||
DESTINATION=./data/$TIMESTAMP
|
||||
|
||||
mkdir -p $DESTINATION
|
||||
gsutil -m cp -r gs://$PROJECT.firebasestorage.app $DESTINATION
|
||||
|
||||
echo Backup of Firebase Storage done
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user