Download the PHP package greathimansh/backup-auto-detect-database without Composer
On this page you can find all versions of the php package greathimansh/backup-auto-detect-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download greathimansh/backup-auto-detect-database
More information about greathimansh/backup-auto-detect-database
Files in greathimansh/backup-auto-detect-database
Package backup-auto-detect-database
Short Description Backup MySQL and MongoDB databases and upload to Google Drive automatically.
License MIT
Informations about the package backup-auto-detect-database
๐ฆ BackupAutoDetectDatabase
Automatically backup MySQL or MongoDB databases and upload them to Google Drive, as a reusable Laravel package.
๐ Package by: greatHimanshu
๐ Features
- ๐ Secure upload to Google Drive using a Service Account
- ๐พ Auto-detect MySQL or MongoDB and perform dump
- โ๏ธ Upload
.sql
or.archive
file to Drive - ๐งน Auto-delete local files after upload
- ๐ Ready for Laravel scheduler integration
- ๐งฉ Easy to install and use
๐ฅ Installation
1. Require the package via Composer
โ๏ธ Laravel Usage
1. Publish config (optional)
This will publish a config file: config/backup-auto-detect.php
2. Add Service Account JSON file
Place your Google Drive service account key file here:
๐ Configuration (.env
)
Add these entries:
โถ๏ธ Run the Command
Use the built-in Artisan command:
Example output:
๐ Automate with Laravel Scheduler
In app/Console/Kernel.php
:
Run scheduler every minute via cron (Linux):
On Windows, use Task Scheduler.
๐งฉ Supported Versions
- PHP 8.1+
- Laravel 9, 10, 11, 12
- MySQL via
mysqldump
- MongoDB via
mongodump
Ensure mysqldump
or mongodump
is available in system PATH
or provide full path in the config.
๐ Where does it store backups?
- Files are uploaded to your Google Drive folder
- Filename format:
all-databases-backup.sql
or.archive
(MongoDB)
๐งโ๐ป Contributing
PRs are welcome. Make sure your code is clean, PSR-4 compliant, and properly documented.
๐จโ๐ Author
greatHimanshu
๐ GitHub
๐ก License
This package is licensed under the MIT License.
All versions of backup-auto-detect-database with dependencies
google/apiclient Version ^2.18
spatie/db-dumper Version ^3.8
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0