cakephp-database-backup

DatabaseBackup is a CakePHP plugin to export, import and manage database backups

OTHER License

Downloads
20.1K
Stars
19
Committers
3

Bot releases are hidden (Show)

cakephp-database-backup - 2.8.1

Published by mirko-pagliai almost 5 years ago

Thanks to @fiste788

cakephp-database-backup - 2.7.1

Published by mirko-pagliai almost 5 years ago

Thanks to @fiste788

cakephp-database-backup - 2.8.0

Published by mirko-pagliai almost 5 years ago

  • updated for cakephp 4 and phpunit 8.
cakephp-database-backup - 2.7.0

Published by mirko-pagliai almost 5 years ago

  • BackupTrait::getBinary() method has been moved to Driver abstract class;
  • BackupTrait::getTarget(), BackupTrait::getDriverName() and
    BackupTrait::getValidExtensions() methods have been removed.
cakephp-database-backup - 2.6.6

Published by mirko-pagliai almost 5 years ago

  • tests have been optimized and speeded up;
  • APIs are now generated by phpDocumentor and no longer by apigen.
cakephp-database-backup - 2.6.5

Published by mirko-pagliai about 5 years ago

  • little fixes.
cakephp-database-backup - 2.6.4

Published by mirko-pagliai about 5 years ago

  • little fixes for BackupManager and BackupExport classes;
  • added tests for lower dependencies;
  • improved exception message when no binary file is found;
  • no longer uses the Folder class.
cakephp-database-backup - 2.6.3

Published by mirko-pagliai over 5 years ago

  • little fixes.
cakephp-database-backup - 2.6.2

Published by mirko-pagliai over 5 years ago

  • added BackupTrait::getDriverName() method;
  • BackupExport::compression() takes a compression type name as string or
    null to disable compression;
  • BackupExport::send() takes a recipient's email address as string or null
    to disable sending backup;
  • BackupTrait::getCompression() returns null with no compression;
  • the DriverTestCase class now implements testExportOnFailure() and
    testImportOnFailure() test methods;
  • improved printing of the backup table for the IndexCommand;
  • updated for php-tools 1.2 and me-tools 2.18.7.
  • added API.
cakephp-database-backup - 2.6.1

Published by mirko-pagliai over 5 years ago

  • added DriverTestCase::getMockForDriver() method;
  • DriverTestCase::allRecords() method renamed as getAllRecords();
  • many small code fixes;
  • requires me-tools package for dev;
  • removed ConsoleIntegrationTestTrait, because it is now sufficient to use the
    same trait provided by me-tools;
  • updated for php-tools 1.1.12.
cakephp-database-backup - 2.6.0

Published by mirko-pagliai almost 6 years ago

  • BackupShell has been replaced with console commands. Every method of the
    previous class is now a Command class;
  • BackupManager::index() returns a collection of backups;
  • ConsoleIntegrationTestCase has been replaced by ConsoleIntegrationTestTrait.
    TestCaseTrait has been removed and its methods moved to TestCase;
  • removed DATABASE_BACKUP constant;
  • updated for CakePHP 3.7.
cakephp-database-backup - 2.5.1

Published by mirko-pagliai almost 6 years ago

  • updated for CakePHP 3.6 and 3.7. Added Plugin class;
  • many small code fixes.
cakephp-database-backup - 2.5.0

Published by mirko-pagliai over 6 years ago

  • now it uses the mirko-pagliai/php-tools package. This also replaces
    mirko-pagliai/reflection;
  • removed BackupTrait::getClassShortName() method. The
    get_class_short_name() global function will be used instead.
cakephp-database-backup - 2.4.0

Published by mirko-pagliai over 6 years ago

  • fixed bug trying to email a nonexistent backup;
  • VALID_COMPRESSIONS and VALID_EXTENSIONS constants have been replaced by
    getValidCompressions() and getValidExtensions() methods provided by the
    BackupTrait class;
  • replaced InternalErrorException with InvalidArgumentException and
    RuntimeException. This allows compatibility with CakePHP 3.6 branch.
cakephp-database-backup - 2.3.0

Published by mirko-pagliai over 6 years ago

  • full support for working under Windows;
  • added Driver::getConfig() method, removed Driver::$config property. This
    allows you to get the configuration values safely;
  • fixed a bug for export and import executables with Postgres databases;
  • before importing a sqlite backup, each table is dropped, rather than deleting
    the database file;
  • added isWin() global function;
  • tests can have onlyUnix or onlyWindows group.

Thanks to @swiffer for the valuable contribution in supporting Windows.

cakephp-database-backup - 2.2.0

Published by mirko-pagliai about 7 years ago

  • added ConsoleIntegrationTestCase and TestCaseTrait classes. Console tests
    have been simplified;
  • updated for CakePHP 3.5.
cakephp-database-backup - 2.1.4

Published by mirko-pagliai about 7 years ago

  • when a backup is sent by mail, the mimetype is forced;
  • fixed some tests.
cakephp-database-backup - 2.1.3

Published by mirko-pagliai about 7 years ago

  • added createBackup() and createSomeBackups() to the TestCase class;
  • BackupManager::_send() has become getEmailInstance().
cakephp-database-backup - 2.1.2

Published by mirko-pagliai about 7 years ago

  • fixed composer.json: the plugin requires at least version 3.4 of CakePHP.
cakephp-database-backup - 2.1.1

Published by mirko-pagliai over 7 years ago

  • afterExport(), afterImport(), beforeExport() and beforeImport methods
    are now real events;
  • now you can choose if you want to redirects stderr to /dev/null. This
    suppresses the output of executed commands.