[id='xsite_auto_offline-{context}']
= Automatically Taking Backups Offline
You can configure backup locations to go offline automatically when the remote
sites become unavailable. This prevents {brandname} nodes from continuously
attempting to replicate data to offline backup locations, which results in
error messages and consumes resources.

.Timeout for backup operations
Backup configurations include timeout values for operations to replicate data.
If operations do not complete before the timeout occurs, {brandname} records
them as failures.

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/xsite_backup_timeout.xml[]
----

.Number of failures
You can specify the number of **consecutive** failures that can occur before
backup locations go offline.

For example, the following configuration for **NYC** sets five as the number of
failed operations before it goes offline:

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/xsite_backup_number_failures.xml[]
----

.Time to wait
You can also specify how long to wait before taking sites offline when backup
operations fail. If a backup request succeeds before the wait time runs out,
{brandname} does not take the site offline.

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/xsite_backup_time_wait.xml[]
----

[TIP]
====
Set a negative or zero value for the `after-failures` attribute if you want to use only a minimum time to wait to take sites offline.

[source,xml,options="nowrap",subs=attributes+]
----
<take-offline after-failures="-1" min-wait="10000"/>
----
====
