lampdevs/backup

Lampedev Backup Package

Maintainers

Package info

github.com/Lampfam74/packages-backup

pkg:composer/lampdevs/backup

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-21 12:06 UTC

This package is auto-updated.

Last update: 2026-04-22 12:31:42 UTC


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 .env backup
  • 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”** πŸš€