captjm/backup-symfony-bundle

Backup symfony databases and upload folders

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/captjm/backup-symfony-bundle

1.0.13 2023-10-19 07:23 UTC

This package is auto-updated.

Last update: 2025-10-19 11:32:54 UTC


README

Installation

BackupSymfonyBundle requires PHP 8 or higher and Symfony 5.4 or higher.

Run the following command to install it in your application:

$ composer require captjm/backup-symfony-bundle

Insert in config/routes.yaml:

captjm_backup:
    resource: '../vendor/captjm/backup-symfony-bundle/src/Controller/'
    type: annotation

Insert in config/services.yaml:

parameters:

    captjm.database_url: '%env(DATABASE_URL)%'
    
services:

    Captjm\BackupSymfonyBundle\Controller\CaptjmBackupSymfonyController:
        tags:
            - 'controller.service_arguments'
        arguments:
            - '@parameter_bag'

And then insert in Controller/Admin/DashboardController.php:

public function configureMenuItems(): iterable
{
    ....
    yield MenuItem::linkToRoute('Backup', 'fas fa-download', 'captjm_backup');
    ....
}    

Documentation

Versions

Demo Application

License

This software is published under the MIT License