PHPackages                             sameoldnick/laravel-backup-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sameoldnick/laravel-backup-manager

ActiveLibrary[Database &amp; ORM](/categories/database)

sameoldnick/laravel-backup-manager
==================================

Database-driven backup management for Laravel.

v1.1.0(3d ago)024↑525%MITPHP ^8.4

Since Jul 5Compare

[ Source](https://github.com/SameOldNick/laravel-backup-manager)[ Packagist](https://packagist.org/packages/sameoldnick/laravel-backup-manager)[ Docs](https://github.com/sameoldnick/laravel-backup-manager)[ RSS](/packages/sameoldnick-laravel-backup-manager/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (19)Versions (3)Used By (0)

Laravel Backup Manager
======================

[](#laravel-backup-manager)

[![codecov](https://camo.githubusercontent.com/22e09d65761264a25f791a8031465542d967d1616070049ad27bdb781eaff845/68747470733a2f2f636f6465636f762e696f2f67682f53616d654f6c644e69636b2f6c61726176656c2d6261636b75702d6d616e616765722f67726170682f62616467652e7376673f746f6b656e3d5367665a6e676d364942)](https://codecov.io/gh/SameOldNick/laravel-backup-manager)

A database-driven backup management package for Laravel that centralizes backup and cleanup schedules, supports dynamic storage destinations, and extends [Spatie Backup](https://github.com/spatie/laravel-backup) for production workflows. Provides backend responders for your front-end stack — example React components are available in the [wiki](https://github.com/SameOldNick/laravel-backup-manager/wiki).

Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 11 / 12 / 13
- [spatie/laravel-backup](https://github.com/spatie/laravel-backup)

Installation
------------

[](#installation)

```
composer require sameoldnick/laravel-backup-manager
```

Publish the configuration and migrations:

```
php artisan vendor:publish --provider="SameOldNick\BackupManager\ServiceProvider"
php artisan migrate
```

Publish the Spatie Backup configuration if you haven't already:

```
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
```

Quick Start
-----------

[](#quick-start)

1. **Run the installer** to scaffold app-level responder classes for your front-end stack:

```
php artisan backup-manager:install --stack=inertia
```

Supported stacks: `inertia`, `custom`

2. **Create a storage destination** through the UI at `/backup/destinations` (or programmatically).
3. **Create a backup schedule** — choose the backup type, cron expression, and target storage disks.
4. **Run your first backup** from the UI or let the scheduler handle it.

Features
--------

[](#features)

### Database-Driven Schedules

[](#database-driven-schedules)

Backup and cleanup schedules live in the database — no hard-coded entries in `routes/console.php`. Each backup schedule links to one or more storage destinations.

- **Backup schedules**: Type (`full`, `files`, `databases`), cron expression, active/inactive
- **Cleanup schedules**: Cron expression, active/inactive
- Schedules are automatically registered with Laravel's task scheduler

### Dynamic Storage Destinations

[](#dynamic-storage-destinations)

Storage destinations (local, FTP, SFTP) are stored as database records and resolved at runtime. You can add, edit, test, and remove destinations without touching config files.

- **Local** — path-based storage on the same server
- **FTP** — remote FTP server with optional SSL and passive mode
- **SFTP** — secure SSH file transfer with key or password auth

Each destination has a unique slug that becomes its Laravel disk name.

### Built on Spatie Backup

[](#built-on-spatie-backup)

The package wraps [spatie/laravel-backup](https://github.com/spatie/laravel-backup) and extends its configuration. All Spatie Backup features — file selection, database dumping, compression, encryption, notifications, and health checks — work as expected.

### Front-End Integration

[](#front-end-integration)

The package provides responder contracts and implementations that return responses for your front-end stack. Run the installer to scaffold them into your application:

```
php artisan backup-manager:install --stack=inertia
```

Supported stacks: `inertia`, `custom`

The Inertia responders return page-level props for:

- Listing and downloading backups
- Creating, editing, testing, and deleting storage destinations
- Managing backup and cleanup schedules
- Triggering and monitoring backup runs

The UI layer is contract-based — swap in your own responders for a custom stack (REST API, Blade, Livewire, etc.).

> **Note:** React/Vue components are not included in the package. Example React components for the Inertia responders are available in the [GitHub wiki](https://github.com/SameOldNick/laravel-backup-manager/wiki).

### Real-Time Notifications

[](#real-time-notifications)

Backup progress, success, and failure events are broadcast over WebSockets so your UI can update without polling. Channel access is managed through the application cache.

### Signed Download URLs

[](#signed-download-urls)

Backup files are served through signed, time-limited URLs, keeping your storage disks private while allowing secure downloads.

### Programmatic API

[](#programmatic-api)

All operations are backed by a service layer you can use in your own code, CLI commands, or scheduled jobs:

```
use SameOldNick\BackupManager\Enums\BackupTypes;
use SameOldNick\BackupManager\Services\PerformBackupService;

$service = app(PerformBackupService::class);
$lease = $service->openBackupChannel($uuid, $user);
$backupRun = $service->dispatchBackupJob($lease, BackupTypes::Full, $user);
```

Additional Information
----------------------

[](#additional-information)

The GitHub [wiki](https://github.com/SameOldNick/laravel-backup-manager/wiki) contains additional information about Laravel Backup Manager.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE) for details.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance99

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ffbb43bf329bdf64328633153be67c2057ae694839c1b109c74a80b8184aec4?d=identicon)[SameOldNick](/maintainers/SameOldNick)

---

Tags

laraveldatabasebackupmanagerSameOldNick

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sameoldnick-laravel-backup-manager/health.svg)

```
[![Health](https://phpackages.com/badges/sameoldnick-laravel-backup-manager/health.svg)](https://phpackages.com/packages/sameoldnick-laravel-backup-manager)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.8k](/packages/illuminate-database)[spatie/laravel-backup

A Laravel package to backup your application

6.0k24.4M247](/packages/spatie-laravel-backup)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213424.8k2](/packages/wnx-laravel-backup-restore)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k18.7M49](/packages/kreait-laravel-firebase)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M170](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
