diff options
Diffstat (limited to 'bin/mysqldump.php')
| -rwxr-xr-x | bin/mysqldump.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/mysqldump.php b/bin/mysqldump.php index 7d8e960..3a63da9 100755 --- a/bin/mysqldump.php +++ b/bin/mysqldump.php | |||
| @@ -4,10 +4,13 @@ | |||
| 4 | 4 | ||
| 5 | declare(strict_types=1); | 5 | declare(strict_types=1); |
| 6 | 6 | ||
| 7 | use App\Service\Config; | ||
| 8 | use App\Service\Backup; | ||
| 9 | |||
| 7 | chdir(dirname(__FILE__)); | 10 | chdir(dirname(__FILE__)); |
| 8 | require "../vendor/autoload.php"; | 11 | require "../vendor/autoload.php"; |
| 9 | Config::load('../config/config.ini'); | 12 | Config::load('../config/config.ini'); |
| 10 | require '../src/model/doctrine-bootstrap.php'; | 13 | require '../src/Model/doctrine-bootstrap.php'; |
| 11 | 14 | ||
| 12 | $file_name = Backup::mySQLdump($entityManager, 'console'); // créer un nouveau backup | 15 | $file_name = Backup::mySQLdump($entityManager, 'console'); // créer un nouveau backup |
| 13 | echo "Un backup a été créé:\n" . realpath($file_name) . "\n"; \ No newline at end of file | 16 | echo "Un backup a été créé:\n" . realpath($file_name) . "\n"; \ No newline at end of file |
