Backup script for Strapi SQLite DB files with scheduled uploads to Yandex Disk or Google Drive. Current version 0.2.21, requires Node 18-20. Automates configuration via npx init command, supports PM2 process manager for cron scheduling. Differentiator: specifically tailored for Strapi's SQLite backend, supports both Yandex and Google Drive, and includes automatic cleanup of old backups both locally and in the cloud. Uses winston for logging, googleapis for Drive, and yandex-disk for Yandex upload.
npm install strapi-db-sqlite-cloud-backupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the package, initialize configuration, set environment variables for Google Drive, and run a one-time backup manually.
Stop Strapi before backup, or ensure SQLite is not being written to (e.g., use a replica).
Use absolute path for GOOGLE_CREDENTIALS_PATH, or set working directory in ecosystem.config.js with cwd option.
Use Node 18 or 20. Run `nvm use 18` or downgrade via nvm.
Consider using only Google Drive; or manually renew Yandex token every year.
Implement your own cleanup for Google Drive, or set MAX_BACKUPS to a high value to avoid accumulation.
Verify the path: Strapi default is .tmp/data.db relative to backend root. Ensure DB_PATH includes trailing slash or proper concatenation.
Run `npm install googleapis` in your project.
Check network connection and ensure outbound HTTPS (443) is allowed.
Re-download credentials JSON from GCP Console and ensure the service account has Drive API enabled and folder shared with the service account email.