---
title: "Back up your podcast"
description: "Keep the media, metadata, and deployment state you need to recover."
---

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

# Back up your podcast

A metadata export is one part of a backup. It does not contain your audio files or everything needed to restore the installation.

## Export metadata

From the source checkout:

```sh
npm run build
npm run backup -- https://YOUR_MANAGEMENT_HOST
```

The script uses an owner token from `cloudflared access token`, or `R2CAST_MCP_TOKEN_FILE` for a suitably scoped reader. It writes private NDJSON files under `backups/`.

The export includes working documents, revisions, released content references, release jobs, command receipts, audit records, distribution records, and migration data. If metadata changes during pagination, the export is rejected and the partial file is removed. Retry when the show is not being changed.

## Back up the other pieces

| Keep | Why |
| --- | --- |
| Both R2 buckets, with object keys and metadata | Public media and retained private originals |
| Directory storage and OAuth state | Grants and connection state |
| Secrets and Cloudflare configuration | Authentication and integration settings |
| Installation JSON and `.alchemy/state` | Resource identity for upgrades and recovery |
| Matching application version | The code that understands the saved data |

Use your own authorized, private backup process for these. The metadata script does not export them.

## Recovery

Automated full restore is not implemented. Test a manual recovery using matching metadata, media, state, and code before relying on a backup.

Do not roll an old publisher back over a newer release database. It may not understand which revisions are public. [Upgrade and rollback notes](https://podstead.wking.dev/docs/guides/upgrades/)

Source: https://podstead.wking.dev/docs/guides/backups/index.mdx
