LaravelPackages.net
Acme Inc.
Toggle sidebar
diego-drese/nova-backup-manager

A Laravel Nova tool.

799
0
V1.0.5
About diego-drese/nova-backup-manager

diego-drese/nova-backup-manager is a Laravel package for a laravel nova tool.. It currently has 0 GitHub stars and 799 downloads on Packagist (latest version V1.0.5). Install it with composer require diego-drese/nova-backup-manager. Discover more Laravel packages by diego-drese or browse all Laravel packages to compare alternatives.

Last updated

Nova Backup Manager

A Laravel Nova 5 tool that allows administrators to manage application backups directly from the Nova interface.
Create, download, monitor, and delete backups in a beautiful UI.

This tool uses Laravel's Cache system to improve performance when loading backup data. When scheduling backup jobs via Laravel's scheduler, it's recommended to clear the cache after successful execution:

->onSuccess(function () {
    BackupCache::forgetBackupsConfig();
    BackupCache::forgetStatuses();
});

This ensures that the Nova UI always displays up-to-date backup information.


📦 Installation

Require the package via Composer:

  composer require diego-drese/nova-backup-manager

🔧 Register the Tool

In your NovaServiceProvider (or any custom Nova Tool registration), register the tool:

public function tools()
{
    return [
        // ...
        new \DiegoDrese\NovaBackupManager\NovaBackupManager,
    ];
}

⚙️ Publish the Configuration File

To customize permissions and behavior, publish the config file:

  php artisan vendor:publish --tag=nova-backup-manager-config

This will create the file:
config/nova-backup-manager.php


⚙️ Configuration Options

return [
    'polling' => true,
    'polling_interval' => 10, // in seconds
    'queue' => null, // queue to dispatch backup jobs

    'show_menu' => true,
    'create' => true,
    'delete' => true,
    'download' => true,

    // Optional: dynamically resolve permissions per user
    'resolve_permissions' => null,
];

🛡️ Customize Per-user Permissions

To customize how permissions are evaluated per user, you can publish and customize the permission resolver:

  php artisan vendor:publish --tag=nova-backup-manager-permissions

This will create the file:

app/Nova/BackupPermissionResolver.php

This will override the static show_menu, create, delete, and download flags dynamically for each logged-in user.

In your config/nova-backup-manager.php, point to the resolver:

  'resolve_permissions' => [\App\Nova\BackupPermissionResolver::class, 'resolve'],


🖥️ Features

  • Create full or partial (database/files only) backups
  • List and download backups per disk
  • Delete old backups
  • Monitor disk health and status
  • Live polling (configurable)

🖼️ UI Preview

img.png

img_1.png


📜 License

MIT © Diego Drese

Star History Chart