Forem

Cover image for Laravel BackupManager
Sarfraz Ahmed
Sarfraz Ahmed

Posted on

2 2

Laravel BackupManager

Simple laravel package to backup/restore files and database.

GitHub logo sarfraznawaz2005 / backupmanager

Simple laravel package to backup/restore files and database.

Latest Version on Packagist Total Downloads

Laravel BackupManager

Simple laravel package to backup/restore files and database.

Screenshot

Main Window

Requirements

  • PHP >= 5.6
  • Laravel 5
  • mysql (to restore database)
  • mysqldump (to backup database)
  • tar (to backup/restore files)
  • zcat (to extract database archive)

Please make sure above binaries are added to PATH environment variable or you can specify full path to them in config file.

Installation

Via Composer

$ composer require sarfraznawaz2005/backupmanager
Enter fullscreen mode Exit fullscreen mode

For Laravel < 5.5:

Add Service Provider to config/app.php in providers section:

Sarfraznawaz2005\BackupManager\ServiceProvider::class,
Enter fullscreen mode Exit fullscreen mode

(Optional) Add Facade to config/app.php in aliases section:

'BackupManager' => Sarfraznawaz2005\BackupManager\Facades\BackupManager::class,
Enter fullscreen mode Exit fullscreen mode

Publish package's files by running below command:

$ php artisan vendor:publish --provider="Sarfraznawaz2005\BackupManager\ServiceProvider"
Enter fullscreen mode Exit fullscreen mode

It should publish config/backupmanager.php.php config file and migration file.

Run php artisan migrate to create backup verifier (verifybackup)) table.


Finally setup options in config/backupmanager.php file and open the backup manager at url you have…

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay