antihero/mount-last-db-bundle

Symfony bundle to mount last .gz sql dump from remote SMB/SFTP server. Commands to dump or mount current DB, and to copy current DB to test DB.

Installs: 184

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:symfony-bundle

0.7 2025-04-29 19:21 UTC

This package is auto-updated.

Last update: 2025-05-29 17:56:43 UTC


README

Symfony bundle to:

  • mount last .gz sql dump from remote FTPS server and execute it. Optional schema drop (doctrine: schema: drop --force) and migration execution (d:m:m)
  • dump or mount local database

    Install

composer require antihero/mount-last-db-bundle

Config

mount_last_db:
    dest_dir: _dump (relative to project root)
    file_filter: lhyo_ocf
    srv_uri: 192.168.0.92
    srv_path: backups
    srv_user: USER
    srv_pwd: '%env(AH_SRV_PWD)%'
    srv_share: mysql_backups (only for smb)
    srv_workgroup: workgroup (only for smb)
    db_host: '%env(DB_HOST)%'
    db_port: '%env(DB_PORT)%'
    db_user: '%env(DB_USERNAME)%'
    db_pwd: '%env(DB_PASSWORD)%'
php bin/console debug:config mount_last_db

Usage

php bin/console ah:mount-last-db
php bin/console ah:mount-db
php bin/console ah:dump-db