lampdevs / backup
Lampedev Backup Package
v1.0.0
2026-04-21 12:06 UTC
Requires
- php: >=8.2
README
Voici ton README.md en pur Markdown (propre, prΓͺt Packagist / GitHub) π
Laravel Backup Manager
A simple and powerful Laravel package to automate full project backups.
It allows you to backup:
- π Database (MySQL / PostgreSQL)
- π Laravel application files
- πΎ Storage folder
- βοΈ .env file
- π¦ Automatic ZIP compression
- β° Scheduler support
π Features
- Full database backup (MySQL / PostgreSQL)
- Backup of Laravel project files
- Secure
.envbackup - ZIP compression support
- Artisan command integration
- Scheduler (cron ready)
- Lightweight & fast
π₯ Installation
Install via Composer:
composer require lampdevs/backup
βοΈ Publish Configuration
php artisan vendor:publish --tag=backup-config
π§ Usage
Run backup manually:
php artisan lamp:backup
β° Scheduler (Automatic Backup)
Add this to app/Console/Kernel.php:
protected function schedule($schedule) { $schedule->command('lamp:backup')->daily(); }
π Backup Output
Backups are stored in:
storage/app/backups/
Example:
backup-2026-04-22-120000.zip
Inside ZIP:
database.sql
.env
storage/
app/
βοΈ Configuration
File: config/backup.php
return [ 'path' => storage_path('app/backups'), 'database' => true, 'files' => true, 'zip' => true, 'keep_days' => 7, ];
π Security Notes
- Never expose
.env - Use scheduler in production
- Store backups outside public directory
- Protect backup folder with server rules
π§ͺ Requirements
- PHP >= 8.2
- Laravel >= 10
- ZipArchive enabled
- mysqldump / pg_dump available
π Example Command
php artisan lamp:backup
Output:
Backup started...
Database backed up
Storage backed up
ZIP created
Backup completed successfully
π Roadmap
- Cloud storage (AWS S3 / Google Drive)
- Backup encryption
- Restore command
- Web dashboard UI
- Email / Slack notifications
π€ Author
LampDevs ERP & DevSecOps Solutions
π License
MIT License
---
Si tu veux, je peux maintenant te faire :
π Packagist-ready GitHub repo structure
π ServiceProvider + auto-discovery clean
π Restore system (`php artisan lamp:restore`)
π Cloud backup (S3 / FTP / Google Drive)
Dis juste : **βupgrade package proβ** π