aboutsummaryrefslogtreecommitdiff
path: root/bin/mysqldump.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mysqldump.php')
-rw-r--r--bin/mysqldump.php13
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
5declare(strict_types=1);
6
7chdir(dirname(__FILE__));
8require "../vendor/autoload.php";
9Config::load('../config/config.ini');
10require '../src/model/doctrine-bootstrap.php';
11
12$file_name = Backup::mySQLdump($entityManager); // créer un nouveau backup
13echo realpath($file_name) . "\n"; \ No newline at end of file