Skip to content

Commit de36a9c

Browse files
committed
Add json sample in README.md
1 parent e42f983 commit de36a9c

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,33 @@ To show a guide how to restore your backup use the *--restore* option.
144144

145145
## Configuration Example
146146

147-
Simple configuration example:
147+
Simple configuration example in JSON:
148+
149+
```json
150+
{
151+
"verbose":true,
152+
"backups":[
153+
{
154+
"name":"myAppDB",
155+
"source":{
156+
"type":"mysqldump",
157+
"options":{
158+
"databases":"mydbname",
159+
"user":"user.name",
160+
"password":"topsecret"
161+
}
162+
},
163+
"target":{
164+
"dirname":"backup",
165+
"filename":"mysql-%Y%m%d-%H%i.sql",
166+
"compress":"bzip2"
167+
}
168+
}
169+
]
170+
}
171+
```
172+
173+
Simple configuration example in XML:
148174

149175
```xml
150176
<?xml version="1.0" encoding="UTF-8"?>

0 commit comments

Comments
 (0)