diff options
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 | ||
