antihero/mount-last-db-bundle

Symfony bundle to mount last .gz sql dump from remote SMB server and execute it. Optional sql script (ie. to dump DB before import) and migration execution.

Installs: 68

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:symfony-bundle

0.2.5 2024-02-07 17:54 UTC

This package is auto-updated.

Last update: 2024-04-07 17:27:03 UTC


README

Symfony bundle to mount last .gz sql dump from remote SMB or FTPS server and execute it. Optional schema drop (doctrine: schema: drop --force) and migration execution (d:m:m)

Install

composer require antihero/mount-last-db-bundle

Config

mount_last_db:
    srv_type: ftps|smb
    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: PASS
    srv_share: mysql_backups (only for smb)
    srv_workgroup: workgroup (only for smb)
php bin/console debug:config mount_last_db

Use

php bin/console ah:mount-last-db