[id='backing-up-caches-different-names_{context}']
= Backing up to caches with different names

{brandname} replicates data between caches that have the same name by default.
If you want {brandname} to replicate between caches with different names, you can explicitly declare the backup for each cache.

.Procedure

. Open your {brandname} configuration for editing.
. Use `backup-for` or `backupFor` to replicate data from another backup location into a cache with a different name on the local cluster.
. Save and close your {brandname} configuration.

[discrete]
== Backup for configuration

The following example configures the "eu-customers" cache to receive updates from the "customers" cache on the **LON** cluster:

.XML
[source,xml,options="nowrap",subs=attributes+,role="primary"]
----
include::xml/xsite_backup_for.xml[]
----

.JSON
[source,json,options="nowrap",subs=attributes+,role="secondary"]
----
include::json/xsite_backup_for.json[]
----

.YAML
[source,yaml,options="nowrap",subs=attributes+,role="secondary"]
----
include::yaml/xsite_backup_for.yaml[]
----
