
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
firebase-github-backup
Advanced tools
Make automated encrypted backups of your Firebase database in a GitHub repo
Automagically backup your Firebase Cloud Firestore database to a GitHub repository, with AES-256 encryption. The GitHub Actions workflow runs every week and stores encrypted backups in the ./backups
directory as .zip
files.
Backup files will be created weekly, and can be downloaded and manually decrypted for viewing. You can also use the npm run decrypt
script to decrypt all stored files. As an example, our production database' backups are available in the ./backups
directory of this repository.
Locally, environment variables are loaded from a .env
file. For GitHub Actions, add the following as repository secrets (see Creating and storing encrypted secrets):
FIREBASE_SERVICE_ACCOUNT_KEY
is the Firebase Service Account Key in JSON formatFIREBASE_DATABASE_URL
is the Firebase Cloud Firestore database URL, e.g., https://example.firebaseio.comBACKUPS_DIRECTORY
is the directory to save backups in, defaults to backups
KEY
is the key for AES-256 encryption, can be any length since it is hashedINITIALIZATION_VECTOR
is the IV for AES-256, can be any length since it is hashedRun the script using ts-node
:
npm run run
You can also decrypt all backups in the directory:
npm run decrypt
Compile TypeScript and run Node.js script:
npm run build && npm run start
An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →
FAQs
Make automated encrypted backups of your Firebase database in a GitHub repo
The npm package firebase-github-backup receives a total of 17 weekly downloads. As such, firebase-github-backup popularity was classified as not popular.
We found that firebase-github-backup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.