Download the PHP package moistcake/db-backup without Composer
On this page you can find all versions of the php package moistcake/db-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moistcake/db-backup
More information about moistcake/db-backup
Files in moistcake/db-backup
Package db-backup
Short Description Database backup to Google Drive for Laravel projects.
License MIT
Informations about the package db-backup
Laravel Database Backup
Laravel Database Backup is a Laravel package that provides an easy way to back up your MySQL database and upload the backup file directly to Google Drive.
🚀 Features
- MySQL database backup using
spatie/db-dumper - Direct upload to Google Drive using
google/apiclient - Configurable backup directory, file prefix, and folder ID
- Exclude specified tables from backup
- Retains a specified number of local backups
📦 Installation
Require the package via Composer:
⚙️ Configuration
-
Publish the configuration file:
-
Set the following environment variables in your
.envfile: - Customize
config/db-backup.phpas needed.
💡 Usage
Run the backup command:
The command will:
- Back up the database
- Upload the backup file to Google Drive
- Retain only the number of local backups specified in the config
📝 Logging Details
The package uses Laravel's logging system to provide detailed information about:
- Backup initiation and completion times
- Upload status and file URL on Google Drive
- Error messages in case of failures
Example log entries:
🛠 Configuration Options
config/db-backup.php:
📝 License
The MIT License (MIT). Please see License File for more information.
🤝 Contributing
Feel free to submit issues or pull requests. Contributions are welcome!
🙌 Credits
📧 Contact
For inquiries or support, open an issue or contact the maintainer at [[email protected]].