A TypeScript library (v1.0.8) for automating MongoDB database backups and uploading them to GitHub or Google Drive. Supports one-time backups, recurring backups via cron schedules, and optional cleanup of old backup files. Requires MongoDB Database Tools installed on the host. Differentiates from generic backup tools by combining backup and cloud upload into a single workflow with TypeScript types.
npm install mongodb-backup-cloudNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a complete backup configuration with URI, cron schedule, and old backup cleanup.
Install mongodb-database-tools from MongoDB official site and add to PATH.
Follow the referenced blog guide to get clientId, clientSecret, and refreshToken.
Generate token with repo and read:user scopes in GitHub developer settings.
Use cron format: 'ss mm hh day month dayOfWeek' (e.g., '00 00 00 * * *' for midnight).
Ensure all required fields are provided correctly based on the option type.
Install mongodb-database-tools and ensure mongodump is accessible.
Regenerate OAuth credentials following the referenced guide.
Run 'npm install mongodb-backup-cloud' and use ESM import syntax.
Use format 'ss mm hh day month dayOfWeek' (e.g., '00 00 00 * * *').