Skip to content

Commit

Permalink
Move json example to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Sep 28, 2023
1 parent 86f8243 commit fa16fe1
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,30 @@ To show a guide how to restore your backup use the *--restore* option.

## Configuration Example

Simple configuration example in XML:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/6.0/phpbu.xsd"
verbose="true">
<backups>
<backup name="myAppDB">
<!-- source -->
<source type="mysqldump">
<option name="databases" value="mydbname"/>
<option name="user" value="user.name"/>
<option name="password" value="topsecret"/>
</source>
<!-- where should the backup be stored -->
<target dirname="backup/mysql"
filename="mysqldump-%Y%m%d-%H%i.sql"
compress="bzip2"/>
</backup>
</backups>
</phpbu>
```

Simple configuration example in JSON:

```json
Expand All @@ -169,27 +193,3 @@ Simple configuration example in JSON:
]
}
```

Simple configuration example in XML:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/6.0/phpbu.xsd"
verbose="true">
<backups>
<backup name="myAppDB">
<!-- source -->
<source type="mysqldump">
<option name="databases" value="mydbname"/>
<option name="user" value="user.name"/>
<option name="password" value="topsecret"/>
</source>
<!-- where should the backup be stored -->
<target dirname="backup/mysql"
filename="mysqldump-%Y%m%d-%H%i.sql"
compress="bzip2"/>
</backup>
</backups>
</phpbu>
```

0 comments on commit fa16fe1

Please sign in to comment.