PHPackages                             aprendible/backup-ui - 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. [Admin Panels](/categories/admin)
4. /
5. aprendible/backup-ui

ActiveLibrary[Admin Panels](/categories/admin)

aprendible/backup-ui
====================

A clean admin UI for spatie/laravel-backup: run, download, clean and monitor your Laravel backups.

v0.1.0(3d ago)01MITPHP ^8.4

Since Jul 8Compare

[ Source](https://github.com/aprendible/backup-ui)[ Packagist](https://packagist.org/packages/aprendible/backup-ui)[ Docs](https://github.com/aprendible/backup-ui)[ GitHub Sponsors](https://github.com/aprendible)[ RSS](/packages/aprendible-backup-ui/feed)WikiDiscussions Synced today

READMEChangelogDependencies (13)Versions (2)Used By (0)

Backup UI for Laravel
=====================

[](#backup-ui-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e075b7b1d24d908b857c5cea4b2e06d69d2c4c7809b87a88fe822e8e4ab7165d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617072656e6469626c652f6261636b75702d75692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aprendible/backup-ui)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e41b28438fa7b43f13cf141cc0a250ba0e592055da9aac429cd17b80edca8331/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617072656e6469626c652f6261636b75702d75692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/aprendible/backup-ui/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bafe5cd785385c5b0f29488c0a05acd29d59fead225a6f08287f2d641ac393dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617072656e6469626c652f6261636b75702d75692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aprendible/backup-ui)

A clean, self-contained admin UI on top of [`spatie/laravel-backup`](https://github.com/spatie/laravel-backup). List your backups per disk, run full / database-only / files-only backups, download or delete archives, clean up old backups, and review your backup configuration — all from the browser.

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

[](#requirements)

- PHP `^8.4`
- Laravel `^11.0`, `^12.0` or `^13.0`
- [`spatie/laravel-backup`](https://github.com/spatie/laravel-backup) `^10.3` (pulled in automatically as a dependency)

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

[](#installation)

Follow the steps below to get the UI running end to end.

### 1. Install the package with Composer

[](#1-install-the-package-with-composer)

```
composer require aprendible/backup-ui
```

The service provider is registered automatically via package discovery — no manual `config/app.php` changes are required.

### 2. Run the interactive installer

[](#2-run-the-interactive-installer)

```
php artisan backup-ui:install
```

The wizard will:

1. Publish the `spatie/laravel-backup` config (`config/backup.php`) and the package config (`config/backup-ui.php`).
2. Ask for your **application/backup name**, the **databases** to back up, and the **destination disks**.
3. Ask how many days to **keep all backups**, an optional **notification email**, and the **daily times** for the backup and cleanup schedules.
4. Patch `config/backup.php` with your answers and, if a chosen disk does not exist, offer to create it in `config/filesystems.php`.

> Prefer to configure things by hand? Skip the wizard and publish the config on its own:
>
> ```
> php artisan vendor:publish --tag="backup-ui-config"
> ```

This is the contents of the published `config/backup-ui.php` file:

```
return [

    // The Gate used to authorize access to the UI. Defaults to "backup-access".
    'gate' => null,

    // Whether the package registers the daily backup / cleanup scheduled tasks.
    'schedule' => [
        'backup' => true,
        'clean' => true,
    ],

    // Where the UI is mounted and which middleware guards it.
    'routes' => [
        'prefix' => 'backup',
        'middleware' => ['web'],
    ],

];
```

### 3. Define the authorization gate

[](#3-define-the-authorization-gate)

The UI is protected by a [Gate](https://laravel.com/docs/authorization#gates) named `backup-access` (see [Authorization](#authorization) below). **Until you define it, every request returns `403`.** Add it to your `AppServiceProvider::boot()`:

```
use Illuminate\Support\Facades\Gate;

Gate::define('backup-access', fn ($user) => in_array($user->email, [
    'admin@example.com',
]));
```

### 4. Make sure the scheduler runs

[](#4-make-sure-the-scheduler-runs)

The package registers a daily `backup:run` and `backup:clean`. For those to fire, your app's scheduler must be running. In local development:

```
php artisan schedule:work
```

In production, add the single Laravel cron entry (`* * * * * php artisan schedule:run`) if you have not already.

### 5. Visit the UI

[](#5-visit-the-ui)

Log in as a user the gate allows and open **`/backup`** (or your configured prefix). You're done — the stylesheet is compiled and self-hosted, so there is no front-end build step in your application.

### (Optional) Customize the views

[](#optional-customize-the-views)

```
php artisan vendor:publish --tag="backup-ui-views"
```

Authorization
-------------

[](#authorization)

The UI is protected by a [Gate](https://laravel.com/docs/authorization#gates). By default it looks for a gate named `backup-access` (override the name via the `gate` config key). Define it in your `AppServiceProvider`:

```
use Illuminate\Support\Facades\Gate;

public function boot(): void
{
    Gate::define('backup-access', function ($user) {
        return in_array($user->email, [
            'admin@example.com',
        ]);
    });
}
```

If no matching gate is defined, the UI returns `403` for every request.

Usage
-----

[](#usage)

Once installed, visit `/backup` (or your configured prefix) while authenticated as a user the gate allows. From there you can:

- View every backup grouped by destination disk, with reachability and used storage.
- Run a full, database-only, or files-only backup.
- Download or delete individual backups.
- Clean up old backups using your configured strategy.
- Review the resolved backup, schedule, cleanup and notification settings.

### Scheduling

[](#scheduling)

When `schedule.backup` is enabled the package registers a daily `backup:run` at `01:00`, and when `schedule.clean` is enabled a daily `backup:clean` at `00:30`. Make sure your application runs the Laravel scheduler:

```
php artisan schedule:work
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Jorge García](https://github.com/aprendible)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance99

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0471e182a9bb494f8502968d5ae21adf29421dbfd96ee2335e008e00b48c31ba?d=identicon)[Aprendible](/maintainers/Aprendible)

---

Tags

laravelbackupspatie-backupaprendiblebackup-ui

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aprendible-backup-ui/health.svg)

```
[![Health](https://phpackages.com/badges/aprendible-backup-ui/health.svg)](https://phpackages.com/packages/aprendible-backup-ui)
```

###  Alternatives

[wnx/laravel-backup-restore

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

213427.0k2](/packages/wnx-laravel-backup-restore)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M255](/packages/filament-support)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24857.5k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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