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

# Backups and monitoring

> Nightly encrypted backups and a check every minute that everything is running.

## Backups

Every night at 02:30 UTC the database and uploaded files are encrypted and copied to Cloudflare R2 (or any S3 storage). Recent days, weeks and months are kept. Admins get an alert if a backup fails.

<Frame caption="Backups">
  <img src="https://mintcdn.com/instaforge/HVDnlmyBMfIyfa_y/images/backups.png?fit=max&auto=format&n=HVDnlmyBMfIyfa_y&q=85&s=caa15b545cd0a7b949d2b4b34a93afb8" alt="Backups" width="1950" height="1387" data-path="images/backups.png" />
</Frame>

<Steps>
  <Step title="Create a bucket">
    In Cloudflare: **R2 Object Storage → Create bucket**, for example `instaforge-backups`.
  </Step>

  <Step title="Create an API token">
    **Manage API tokens → Create API token**, with permission "Object Read & Write" for that bucket only.
  </Step>

  <Step title="Paste the details">
    The Account ID, the bucket, the Access Key ID and the Secret Access Key. Switch on **Back up every night** and save.
  </Step>
</Steps>

<Warning>
  Backups are encrypted with the `ENCRYPTION_KEY` from the server's `.env` file. Keep a copy of that file somewhere safe, such as a password manager. Without it, a backup can't be restored.
</Warning>

## Monitoring

Every minute the platform checks itself: the website, the database, the queue, the disk and the backups. A problem that lasts 3 minutes is reported to admins' phones or Telegram, and again when it's fixed.

<Tip>
  **Recommended:** the platform can't report when the whole server is down. Create a free check at an outside monitoring service and paste its ping address as the **Heartbeat address** in **Settings → Monitoring**. If the pings stop, that service tells you.
</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.