Skip to content

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

License

Notifications You must be signed in to change notification settings

froozeify/sqlite-backup-bundle

Repository files navigation

Status

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages