Skip to content

Commit fa16fe1

Browse files
Move json example to the bottom
1 parent 86f8243 commit fa16fe1

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,30 @@ To show a guide how to restore your backup use the *--restore* option.
144144

145145
## Configuration Example
146146

147+
Simple configuration example in XML:
148+
149+
```xml
150+
<?xml version="1.0" encoding="UTF-8"?>
151+
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
152+
xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/6.0/phpbu.xsd"
153+
verbose="true">
154+
<backups>
155+
<backup name="myAppDB">
156+
<!-- source -->
157+
<source type="mysqldump">
158+
<option name="databases" value="mydbname"/>
159+
<option name="user" value="user.name"/>
160+
<option name="password" value="topsecret"/>
161+
</source>
162+
<!-- where should the backup be stored -->
163+
<target dirname="backup/mysql"
164+
filename="mysqldump-%Y%m%d-%H%i.sql"
165+
compress="bzip2"/>
166+
</backup>
167+
</backups>
168+
</phpbu>
169+
```
170+
147171
Simple configuration example in JSON:
148172

149173
```json
@@ -169,27 +193,3 @@ Simple configuration example in JSON:
169193
]
170194
}
171195
```
172-
173-
Simple configuration example in XML:
174-
175-
```xml
176-
<?xml version="1.0" encoding="UTF-8"?>
177-
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
178-
xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/6.0/phpbu.xsd"
179-
verbose="true">
180-
<backups>
181-
<backup name="myAppDB">
182-
<!-- source -->
183-
<source type="mysqldump">
184-
<option name="databases" value="mydbname"/>
185-
<option name="user" value="user.name"/>
186-
<option name="password" value="topsecret"/>
187-
</source>
188-
<!-- where should the backup be stored -->
189-
<target dirname="backup/mysql"
190-
filename="mysqldump-%Y%m%d-%H%i.sql"
191-
compress="bzip2"/>
192-
</backup>
193-
</backups>
194-
</phpbu>
195-
```

0 commit comments

Comments
 (0)