Skip to content

Instantly share code, notes, and snippets.

@galderz
Created September 26, 2012 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galderz/3786481 to your computer and use it in GitHub Desktop.
Save galderz/3786481 to your computer and use it in GitHub Desktop.
<!-- LON site, the cache below backups to NYC. It doesn't have any clue which site from NYC acts as a backup. -->
<namedCache name="local-users">
<sites>
<backups>
<backup site="NYC" backupFailurePolicy="WARN" strategy="SYNC"/>
</backups>
</sites>
</namedCache>
<!-- -------------------------------------------------------------------------------------------------------- -->
<!-- NYC site. Whenever a remote write from users@LON is received by this site, the data is backed up into
this cache. If the backupFor is missing from all the defined caches, then the name of the backup defaults
to remote cache name, i.e. users) -->
<namedCache name="users">
<sites>
<backupFor remoteCache="local-users" remoteSite="LON"/>
</sites>
</namedCache>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment