@@ -5,13 +5,13 @@ your database but also a tiny backups manager which handle backup files for you.
5
5
6
6
## Backup command
7
7
8
- The backup command will use the [ predefined or configured binary] ( ./configuration#binaries ) for your
8
+ The backup command will use the [ predefined or configured binary] ( ./configuration/basics #binaries ) for your
9
9
database vendor with correct parameters to dump your database.
10
10
11
- Each time you launch the backup command, [ a backup file is stored in a directory] ( ./configuration#storage-directory ) (See
11
+ Each time you launch the backup command, [ a backup file is stored in a directory] ( ./configuration/basics #storage-directory ) (See
12
12
[ Storage section] ( #storage ) below for more information on how backup files are stored).
13
13
14
- With time, this directory will grow, that's why a [ backup expiration age] ( ./configuration#storage-directory#backup-expiration-age )
14
+ With time, this directory will grow, that's why a [ backup expiration age] ( ./configuration/basics #storage-directory#backup-expiration-age )
15
15
was added. Every time you launch the command, at the end, it will be asked if you want to remove obsolete
16
16
backup files (i.e. files that have passed their expiration date).
17
17
@@ -60,7 +60,7 @@ php bin/console db-tools:backup --connection other_connection_name
60
60
61
61
### Excluded tables
62
62
63
- You may have configured [ tables to be exclude in the bundle configuration] ( ./configuration#excluded-tables ) .
63
+ You may have configured [ tables to be exclude in the bundle configuration] ( ./configuration/basics #excluded-tables ) .
64
64
If so, these tables will be automatically excluded each time you launch the command.
65
65
66
66
But if you want to temporarily exclude some tables, run the command with the ` --excluded-table ` option:
@@ -132,11 +132,11 @@ php bin/console db-tools:backup --extra-options "--opt1 val1 --opt2 val2 --flag"
132
132
</div >
133
133
134
134
Unless you specify the ` --ignore-default-options ` option, the custom options
135
- will be added to the [ default options] ( ./configuration#default-binary-options ) .
135
+ will be added to the [ default options] ( ./configuration/basics #default-binary-options ) .
136
136
137
137
### Ignoring default options
138
138
139
- If necessary, [ default options] ( ./configuration#default-binary-options ) can be
139
+ If necessary, [ default options] ( ./configuration/basics #default-binary-options ) can be
140
140
ignored for a backup by using the ` --ignore-default-options ` option:
141
141
142
142
<div class =" standalone " >
@@ -158,7 +158,7 @@ php bin/console db-tools:backup --ignore-default-options
158
158
159
159
## Restore command
160
160
161
- The restore command will use [ predefined or configured binary] ( ./configuration#binaries ) for your database vendor with correct parameters
161
+ The restore command will use [ predefined or configured binary] ( ./configuration/basics #binaries ) for your database vendor with correct parameters
162
162
to restore your database from an existing backup files.
163
163
164
164
<div class =" standalone " >
@@ -280,11 +280,11 @@ php bin/console db-tools:restore --extra-options "--opt1 val1 --opt2 val2 --flag
280
280
</div >
281
281
282
282
Unless you specify the ` --ignore-default-options ` option, the custom options
283
- will be added to the [ default options] ( ./configuration#default-binary-options ) .
283
+ will be added to the [ default options] ( ./configuration/basics #default-binary-options ) .
284
284
285
285
### Ignoring default options
286
286
287
- If necessary, [ default options] ( ./configuration#default-binary-options ) can be
287
+ If necessary, [ default options] ( ./configuration/basics #default-binary-options ) can be
288
288
ignored for a restoration by using the ` --ignore-default-options ` option:
289
289
290
290
<div class =" standalone " >
@@ -307,11 +307,11 @@ php bin/console db-tools:restore --ignore-default-options
307
307
308
308
## Storage
309
309
310
- As mentioned earlier on this page, the * DbToolsBundle* can list existing backup files
310
+ As mentioned earlier on this page, * DbToolsBundle* can list existing backup files
311
311
when you want to restore a previous one with the restore command.
312
312
313
313
All backups are stored in a directory. By default this directory is <span class =" standalone " >` ./var/db_tools ` (relative to the yaml config file)</span ><span class =" symfony " >` %kernel.project_dir%/var/db_tools ` </span >
314
- but [ you can choose the directory you want] ( ./configuration#storage-directory ) .
314
+ but [ you can choose the directory you want] ( ./configuration/basics #storage-directory ) .
315
315
316
316
In this directory, each backup is put in sub-directories depending on the backup date. The backup's filename
317
317
is generated from the backup date and the DBAL connection name of the database.
0 commit comments