Download the PHP package jrosasr/laravel-backup without Composer
On this page you can find all versions of the php package jrosasr/laravel-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jrosasr/laravel-backup
More information about jrosasr/laravel-backup
Files in jrosasr/laravel-backup
Package laravel-backup
Short Description Realiza copias de seguridad de la base de datos de tu aplicación Laravel de una forma simple y eficiente.
License MIT
Homepage https://github.com/jrosasr/laravel-backup
Informations about the package laravel-backup
jrosasr/laravel-backup
Laravel package to automate and simplify database backup creation, with local or cloud storage. Ideal for developers and administrators seeking a robust and flexible solution, compatible with Docker environments.
Table of Contents
- jrosasr/laravel-backup
- Table of Contents
- Main Features
- Compatibility
- Supported Databases
- Supported Storage Services
- Supported Laravel Versions
- Installation
- Configuration
- Commands
- 1. Generate a database backup
- 2. Store an existing backup in the configured storage
- Support
- License
Main Features
- Database Backup: Full backups of your database.
- Docker Support: Runs
pg_dumpinside a Docker container if your database is dockerized. - Flexible Storage:
- Local: Stores backups on the server's filesystem.
- Backblaze B2: Uploads backups to a Backblaze B2 bucket.
- Configurable: Easily choose the storage driver (
localorb2).
Compatibility
Supported Databases
| Database | Supported |
|---|---|
| PostgreSQL | ✅ |
| MySQL | ❌ |
| MongoDB | ❌ |
| SQLite | ❌ |
Supported Storage Services
| Service | Supported |
|---|---|
| Backblaze B2 | ✅ |
| AWS S3 | ❌ |
| Google Cloud Storage | ❌ |
| Azure Blob Storage | ❌ |
Supported Laravel Versions
| Laravel Version | Supported |
|---|---|
| 10.x | ✅ |
| 11.x | ✅ |
| 12.x | ✅ |
Installation
Install the package via Composer:
Configuration
-
Publish the configuration file:
This will copy the
backup.phpfile to yourconfig/directory. -
In your
.envfile, set the storage driver: -
If you use Backblaze B2, set the credentials in
.env: - Example configuration in
config/filesystems.php:
Commands
The package provides the following Artisan commands to manage your backups:
1. Generate a database backup
Generates a database backup file in the storage/app/private/backups path and, depending on the configured driver (local or b2), stores or uploads it automatically.
2. Store an existing backup in the configured storage
Creates a zip file with the files located in storage/private and storage/public, and takes the existing backup file (e.g., backup_2025_01_01.zip) to store it in the configured driver (local or b2).
Support
Have questions, suggestions, or found a bug? Open an issue in the repository.
License
MIT
All versions of laravel-backup with dependencies
illuminate/support Version ^10.0 || ^11.0 || ^12.0
symfony/process Version ^6.0 || ^7.0
league/flysystem-aws-s3-v3 Version ^3.0
aws/aws-sdk-php Version ^3.351
php-http/guzzle7-adapter Version ^1.0