> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/sample-flows.md ## Article Content: # Sample Flows This article shares some possible use cases you could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your implementation. ## Backing up data before a major update Suppose your site or app is about to update many items in the site's collections. For example, it is updating inventory with the most recent stock quantities in a store. Before such a major update, you can back up site data as follows: 1. Use [Create Backup](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/create-backup.md) to generate a new on-demand backup of all live content in the site's data collections. 2. To check whether the new backup has been completed successfully, use [List Backups](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/list-backups.md). A completed backup's `status` property has the value `READY`. This means it can be used to restore the site's data. 3. Continue managing site data as usual. In most cases, you shouldn't need the later steps! ## Restoring data from a backup What if a site owner accidentally entered incorrect data? For example, suppose they inadvertently provided figures from the wrong month. You can provide the option of reverting site data to a prior state as follows: 1. To restore site data from a backup, you first need to choose which backup to restore. Use [List Backups](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/list-backups.md) with the `status` parameter value `READY` to retrieve a list of all backups that can be used for a restoration, ordered from newest to oldest. You need the ID of the backup you wish to restore data from. If you wish to restore data from the most recent backup, save the ID of the first backup in the list. 2. Use [Restore Backup](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/restore-backup.md) with the ID of the backup you wish to restore data from. 3. To check whether the data restoration has been completed successfully, use [List Restorations](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/list-restorations.md). A completed restoration's `status` property has the value `COMPLETED`. This means the content of site collections has reverted to its state at the time of the selected backup. 4. After restoring data from a backup, you may wish to delete the backup you restored from. This way, you can retain older backups which may have been created at important junctures, while also freeing a slot for a new backup. To do this, use [Delete Backup](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/backups/delete-backup.md) with the ID of the backup you restored data from.