You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then you have to load the plugin. For more information on how to load the plugin,
49
-
please refer to the [Cookbook](//book.cakephp.org/4.0/en/plugins.html#loading-a-plugin).
40
+
please refer to the [Cookbook](https://book.cakephp.org/5/en/plugins.html#loading-a-plugin).
50
41
51
42
Simply, you can execute the shell command to enable the plugin:
52
43
```bash
@@ -66,7 +57,7 @@ If you want to use a different directory, read the [Configuration](#configuratio
66
57
### Installation on older CakePHP and PHP versions
67
58
68
59
Compared to the current installation requirements, some tags are provided for those using older versions of CakePHP and
69
-
PHP (until February 7, 2025, they were available as branches, now only as tags):
60
+
PHP (*until February 7, 2025, they were available as branches, now only as tags*):
70
61
71
62
- tag [`cakephp4`](https://github.com/mirko-pagliai/cakephp-database-backup/releases/tag/cakephp4), which requires at
72
63
least PHP `>=7.4.0` and CakePHP `^4.0`.
@@ -84,36 +75,44 @@ The plugin uses some configuration parameters. See our wiki:
84
75
85
76
If you want to send backup files by email, remember to set up your application
86
77
correctly so that it can send emails. For more information on how to configure
87
-
your application, see the [Cookbook](https://book.cakephp.org/4.0/en/core-libraries/email.html#configuring-transports).
78
+
your application, see the [Cookbook](https://book.cakephp.org/5/en/core-libraries/email.html#configuring-transports).
88
79
89
80
## How to use
81
+
90
82
See our wiki:
91
-
*[Export backups as cron jobs](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/Export-backups-as-cron-jobs)
92
-
*[How to use the BackupExport utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupExport-utility)
93
-
*[How to use the BackupImport utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupImport-utility)
94
-
*[How to use the BackupManager utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupManager-utility)
95
-
*[How to use the BackupShell](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupShell)
83
+
*[How to use commands](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-commands)
84
+
*[Export backups as cron jobs](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/Export-backups-as-cron-jobs)
85
+
*[How to use the BackupExport utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupExport-utility)
86
+
*[How to use the BackupImport utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupImport-utility)
87
+
*[How to use the BackupManager utility](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/How-to-use-the-BackupManager-utility)
96
88
97
-
And refer to our [API](//mirko-pagliai.github.io/cakephp-database-backup).
89
+
Before opening an issue, check this list of [common issues](https://github.com/mirko-pagliai/cakephp-database-backup/wiki/Common-issues).
98
90
99
91
## Testing
100
-
Tests are run for only one driver at a time, by default `mysql`.
101
-
To choose another driver to use, you can set the `driver_test` environment variable before running `phpunit`.
92
+
93
+
Normally tests are only run on one driver at a time, by default `mysql`.
94
+
95
+
To run tests with another driver, you can use the scripts defined in `composer.json`:
102
96
103
97
For example:
104
98
```bash
105
-
driver_test=sqlite vendor/bin/phpunit
106
-
driver_test=postgres vendor/bin/phpunit
99
+
$ composer test
100
+
$ composer test-postgres
101
+
$ composer test-sqlite
107
102
```
108
103
109
-
Alternatively, you can set the `db_dsn` environment variable, indicating the connection parameters. In this case, the driver type will still be detected automatically.
104
+
Instead, to run tests with all drivers, you can use the `test-all` script (individual tests are chained together).
105
+
106
+
For individual drivers, alternatively you can set the `db_dsn` environment variable, indicating the connection
107
+
parameters. In this case, the driver type will still be detected automatically.
0 commit comments