diff options
| author | polo <ordipolo@gmx.fr> | 2026-05-10 17:01:21 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-05-10 17:01:21 +0200 |
| commit | 895cf7a438929f74c2e11996667685245a571f2a (patch) | |
| tree | 5dfad9d5e0d2f4a802482f5883dd4673ed971238 /bin/mysqldump.php | |
| parent | 2c47085b27253c4ad2d062d15c18c3a8c7591298 (diff) | |
| download | cms-895cf7a438929f74c2e11996667685245a571f2a.tar.gz cms-895cf7a438929f74c2e11996667685245a571f2a.tar.bz2 cms-895cf7a438929f74c2e11996667685245a571f2a.zip | |
partie client de la restauration de BDD, script bin/mysqldump.php, changements permissions dossiers, renommage ViewDirector
Diffstat (limited to 'bin/mysqldump.php')
| -rw-r--r-- | bin/mysqldump.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/mysqldump.php b/bin/mysqldump.php new file mode 100644 index 0000000..4356a81 --- /dev/null +++ b/bin/mysqldump.php | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #!/usr/bin/env php | ||
| 2 | <?php | ||
| 3 | // bin/mysqldump.php | ||
| 4 | |||
| 5 | declare(strict_types=1); | ||
| 6 | |||
| 7 | chdir(dirname(__FILE__)); | ||
| 8 | require "../vendor/autoload.php"; | ||
| 9 | Config::load('../config/config.ini'); | ||
| 10 | require '../src/model/doctrine-bootstrap.php'; | ||
| 11 | |||
| 12 | $file_name = Backup::mySQLdump($entityManager); // créer un nouveau backup | ||
| 13 | echo realpath($file_name) . "\n"; \ No newline at end of file | ||
