> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinedigital.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Kinsta Enhancer

> A WordPress plugin that lets you manage Kinsta site backups directly from the WordPress dashboard.

## **Requirements**

* WordPress 6.9+
* PHP 8.1+
* [**Kinsta Hosting**](https://kinsta.com/?kaid=ZEIXLLPBHABE)

## **Installation**

1. Download the latest **Kinsta Enhancer** version from [**your Pine Digital account**](https://pinedigital.co/account/downloads).
2. In WordPress: **Plugins → Add New → Upload Plugin**, upload **Kinsta Enhancer**, and **activate it**.

### **Kinsta Backup Manager**

**Manage Kinsta site backups from the WordPress admin using the [Kinsta API](https://kinsta.com/docs/kinsta-api/).**

* List backups for the configured environment
* Create manual backups with an optional note
* Restore a backup to a target environment
* Delete backups and check async operation status

<Danger>
  Kinsta Backup Manager uses a **company-level Kinsta API key,** and therefore **every site and environment under that Kinsta account** is available in the settings UI.

  This plugin should only be used under the following scenarios:

  * Installed only on the Kinsta account holder's website.
  * Installed on client websites but hidden from everyone except the Kinsta account holder. 
</Danger>

#### **Setup Instructions**

1. **Kinsta Account → Company Settings → API Keys →** Create API Key.
2. **Kinsta Enhancer** **→ API Key →** Add your Kinsta API key from **Step 1**.
3. Save changes.
4. **Kinsta Enhancer** **→ WordPress Site →** Choose your site.
5. **Kinsta Enhancer** **→ Environment →** Choose your environment.
6. Save changes.

## **Frequently Asked Questions**

<AccordionGroup>
  <Accordion title="How do we perform a backup?">
    1. In the WordPress dashboard, go to **Pine Digital → Kinsta Enhancer**.
    2. Under **API Settings**, confirm your API key, **WordPress Site**, and **Environment** are set, then click **Save Changes** if you changed anything.
    3. Scroll to **Backups → Create Manual Backup**.
    4. (Optional) Enter a note in **Add Optional Backup Note**.
    5. Click **Create Manual Backup**.
    6. When the request is accepted, you’ll see a confirmation. Backups run asynchronously on Kinsta — use **Check Status** with the operation ID if you want to confirm it’s finished.
    7. Refresh the backups list to see the new backup once it appears.

    You need a `manage_options` user, a valid MyKinsta API key and a selected environment. Backups apply to the environment chosen in API settings.
  </Accordion>

  <Accordion title="How do we restore from backup?">
    1. In the WordPress dashboard, go to **Pine Digital → Kinsta Enhancer**.
    2. Confirm **API Settings** has a valid API key, site, and environment selected.
    3. Under **Backups**, locate the backup in the list.
    4. Open **Restore** for that row.
    5. Choose the **Target Environment**.
    6. If the target is **Live**, type `RESTORE` in the confirmation field (admins with the live-restore capability only).
    7. Click **Restore Backup**.
    8. When the request succeeds, you’ll see a confirmation. Restores run asynchronously — use **Check Status** with the operation ID to confirm it’s finished.

    Your WordPress user email should match a MyKinsta company user (or the company should have only one user), so restore notifications can be assigned. Live restores require the `pde_kinsta_restore_live` capability (granted to administrators on activation).
  </Accordion>

  <Accordion title="How is the API key stored?">
    The API key is encrypted with PHP OpenSSL using WordPress salts. You may optionally define **KINSTA\_API\_KEY** within **wp-config.php** so the key is not stored in the database.
  </Accordion>
</AccordionGroup>
