froozeify / sqlite-backup-bundle
Easy way to backup/restore an SQLite file in a symfony project
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.2
- psr/container: ^1.0
- symfony/config: ^4.2
- symfony/console: ^4.2
- symfony/dependency-injection: ^4.2
- symfony/http-kernel: ^4.2
This package is auto-updated.
Last update: 2024-04-05 23:48:36 UTC
README
This package is currently under active development.
Installation
You can install this package with composer: composer require froozeify/sqlite-backup-bundle --dev
For the moment, no symfony recipes has been created.
You must create a froozeify_sqlite_backup.yml
in your package config directory (/config/packages
)
Here is a reference configuration file:
froozeify_sqlite_backup: # Full path to your original sqlite file original_file: '%kernel.project_dir%/var/data.db' # Full path where the backup of your original file must be saved backup_file: '%kernel.project_dir%/var/bk-data.db'
Commands
Backup your SQLite file
php bin/console froozeify:sqlite:backup [<output>]
output
: Optional allow you to change your copied file location and name
Restore your SQLite file
php bin/console froozeify:sqlite:restore [<input>]
input
: Optional allow you to change your source backup file path
License
See the LICENSE file for license rights and limitations (MIT).