---
url: /razorpay-acellemail/backup-and-restore.md
description: >-
  There is no built-in backup for the Razorpay for AcelleMail plugin — use
  standard AcelleMail database backups, and roll back by re-uploading the
  previous ZIP.
---

# Backup and restore

The Razorpay gateway plugin has **no built-in backup system**. It doesn't need one: your settings —
API Key ID, API Key Secret, license key and Webhook Secret — live in **AcelleMail's own database**, so
they persist across plugin updates. Your safety net is a standard AcelleMail backup, which you should
take before any big change.

## What to back up

* **The AcelleMail database.** This holds the plugin's settings *and* your payment and transaction
  records. A regular database backup captures everything the gateways rely on.
* **Your Razorpay credentials, kept somewhere safe.** Your Key ID, Key Secret and Webhook Secret can
  always be regenerated in the Razorpay dashboard, but keeping a secure note avoids downtime.

::: tip Back up before big changes
Take a fresh database backup before you update the plugin, change PHP versions, or migrate servers.
It's the fastest way to return to a known-good state.
:::

Because these gateways use AcelleMail's own payment tables — there are **no custom database tables** —
a normal AcelleMail database backup is complete. There is nothing plugin-specific to export.

## Rolling back

If a new build causes trouble, roll back cleanly:

1. Download the **previous** `relyweb-razorpay-vX.Y.Z.zip` from your relyweb.co client area.
2. Upload it via **Admin → Plugins → Upload Plugin**, overwriting the current install. Settings are
   preserved, so your keys and license stay intact.
3. If the newer version had already changed data and you need the earlier state, **restore the
   database** from the backup you took before updating.

After rolling back, open **Admin → Plugins → Razorpay → Settings**, confirm the license badge reads
**Active**, and run a small test payment to verify the gateways work.

## Related pages

* [Updating](/razorpay-acellemail/updating)
* [Installation](/razorpay-acellemail/installation)
* [Uninstalling](/razorpay-acellemail/uninstalling)
* [Troubleshooting](/razorpay-acellemail/troubleshooting)
