Backups
Take a backup of a site's files and database before a change, and turn its scheduled backups off or on.
On this page
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can back it up.
- Each environment has its own backups: choose Production or Staging in the site header first.
Take a backup
Open the site's backups
Go to Managed Websites, choose the site, then Backups under Code & backups.
Take the backup
Choose Take a backup. Add a Note saying why, such as
Before the theme update, then choose Take a backup.
The backup joins the list as One-off and reads Ready after about a minute. The site stays online while it is taken.
A one-off backup expires with the others, on the date under Expires. To stop it expiring, see Keep or annotate a backup.
Read the list
Each row is one backup. Type says why it was taken.
| Type | Taken |
|---|---|
| Scheduled | On the environment's backup schedule. |
| One-off | By a person, with Take a backup. |
| Safety copy | Before a restore replaced the environment, so the restore can be undone. |
| Before deployment | Before a deployment. |
| Final | When an environment was deleted. |
To put the site back from a row, see Restore a backup.
Turn scheduled backups off or on
Use the switch
Under Scheduled backups, turn the switch off or on for this environment.
With the switch off, the card reads One-off and safety backups still work.
Automate this
Starts a one-off snapshot of the site and answers it with status pending or creating.
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/snapshots \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"note": "Before the PHP 8.4 move"
}'Your assistant calls corestack_snapshot_create.
{
"name": "corestack_snapshot_create",
"arguments": {
"site_id": 4211,
"note": "Before the import"
}
}