froozeify/sqlite-backup-bundle

Easy way to backup/restore an SQLite file in a symfony project

1.0.0 2019-04-18 17:46 UTC

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).