[[bootstrap:diskstore]]
= Configuring a DiskStore

_Spring Data for Pivotal GemFire_ supports `DiskStore` configuration and creation via the `disk-store` element.

For example:

[source,xml]
----
<gfe:disk-store id="Example" auto-compact="true" max-oplog-size="10"
        queue-size="50" time-interval="9999">
    <gfe:disk-dir location="/disk/location/one" max-size="20"/>
    <gfe:disk-dir location="/disk/location/two" max-size="20"/>
</gfe:disk-store>
----

`DiskStores` are used by Regions for file system persistent backup and overflow of evicted entries
as well as persistent backup for WAN Gateways.  Multiple Pivotal GemFire components may share the same `DiskStore`.
Additionally, multiple file system directories may be defined for a single `DiskStore` as shown in the example above.

Please refer to Pivotal GemFire's documentation for a complete explanation of
http://gemfire.docs.pivotal.io/95/geode/developing/storing_data_on_disk/chapter_overview.html[Persistence and Overflow]
along with configuration options on `DiskStores`.
