Welcome to the Laravel Backup repository! This package offers a straightforward solution for backing up your database and storage with automatic cleanup features.
- Automatic Backups: Schedule your backups effortlessly.
- Storage Backup: Back up your storage files along with your database.
- Auto-Cleanup: Keep your backup storage tidy by removing old backups automatically.
- Easy Integration: Simple to integrate into any Laravel application.
- Support for Multiple Storage Options: Works with local and cloud storage.
To install the Laravel Backup package, follow these steps:
-
Install via Composer:
Run the following command in your terminal:
composer require phwaleed2024/laravel-backup
-
Publish the Configuration:
After installation, publish the configuration file:
php artisan vendor:publish --provider="Phwaleed2024\LaravelBackup\BackupServiceProvider"
-
Set Up Your Backup Schedule:
You can set up your backup schedule in the
app/Console/Kernel.php
file.
To create a backup, you can use the following command:
php artisan backup:run
This command will create a backup of your database and storage files based on your configuration settings.
You can configure the backup settings in the config/backup.php
file. Here are some important options you can set:
- Database Connections: Specify which database connections to back up.
- Storage Disks: Define which storage disks to back up.
- Backup Frequency: Set how often you want the backups to run.
Here are some useful commands provided by the package:
- Run Backup:
php artisan backup:run
- List Backups:
php artisan backup:list
- Restore Backup:
php artisan backup:restore {backup-name}
- Cleanup Old Backups:
php artisan backup:cleanup
We welcome contributions to the Laravel Backup package. If you want to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch and open a pull request.
Please ensure that your code follows the coding standards and includes appropriate tests.
This package is licensed under the MIT License. See the LICENSE file for more information.
For the latest releases, please visit the Releases section. Download the necessary files and execute them as needed to get the latest features and fixes.
Thank you for checking out the Laravel Backup package! We hope it simplifies your backup process and enhances your Laravel applications. For more information, refer to the Releases section to stay updated on the latest changes.
Happy coding! 🎉