About the Backups API

Warning: Wix Data APIs currently require the site's code editor to be enabled manually. For this reason, we recommend against using these APIs for developing Wix CLI apps and self-hosted apps.

The Backups API enables you to create and manage backups of the live content in a Wix site's collections.

With Backups, you can:

Backups enable you to restore a Wix site's collections' content in the event of data corruption, erroneous deletions, or other mistakes.

The system creates a backup automatically every 7 days. In addition, you can use the Backups API to create an on-demand backup when significant changes are made to a site's data. For example:

  • If an automated backup is not scheduled soon, create an on-demand backup after updating data, to ensure new content is backed up as soon as possible.
  • Create an on-demand backup prior to a major update to a Wix site's collections, so you can restore the most recent pre-update data in the event something goes wrong during the update.

Learn more about how site owners can manage backups with the CMS.

Before you begin

It's important to note the following points before starting to code:

  • Backups include only live content. They don't include content contained in the optional sandbox.
  • Backups include only collection content. They don't store a collection's schema or named views.
  • A site can store a maximum of 3 on-demand backups. If 3 on-demand backups already exist and you create a new backup, the oldest existing on-demand backup is deleted.
  • When you restore data from a backup, the restoration process replaces the collection's current data with the data in the backup. So if you add items to a collection after initiating a backup, and then you restore data from that backup, the new content may be lost.
  • If any content is submitted to a collection during the restoration process, that content may be lost.

Terminology

  • Backup: A full copy of the live content contained in a Wix site's collections.
    • Auto: A backup taken automatically by the system on a regular schedule.
    • On demand: A backup initiated manually.
  • Restoration: Regeneration of a Wix site's collection content from a prior backup.
Did this help?