# Export PocketBase data

Export your PocketBase database and uploaded files as a `.tar.gz` archive, for local development, migrating to another app, or your own off-device backup.

Trigger it from the dashboard (Data tab, Export data) or the CLI:
```sh
bunx percher data export                       # app name from percher.toml
bunx percher data export my-app                # explicit app
bunx percher data export --out backup.tar.gz   # custom output path
```
The file streams straight to disk without buffering the entire archive in memory.

The archive is a snapshot of the sidecar's `pb_data` directory: `data.db` (SQLite, all collections and rows), `data.db-wal` (if non-empty), `auxiliary.db` (PocketBase's request logs), `storage/` (uploaded files), and `backups/` (PocketBase's own backups, if you made any). It is taken at rest: the export pauses the PocketBase sidecar for the few seconds the copy takes, verifies the copy, restarts PocketBase and checks it is serving before the archive streams — so `data.db` is always consistent and everything committed before the pause is included.

Browse it locally with `sqlite3 pb_data/data.db`, or run a local PocketBase against it: `./pocketbase serve --dir pb_data` then open `http://127.0.0.1:8090/_/`.

Importing into a new Percher app: the export is a raw `pb_data/` snapshot, not a native PocketBase backup ZIP, so it can't be uploaded directly via the PB backup UI. Either (A) run PocketBase locally on the extracted data, create a native backup (Admin UI, Settings, Backups), and upload that ZIP to the new app's PB admin UI; or (B) request assistance with source and target app names through a dashboard support case at https://percher.app/support/new. During the beta, please share App Data (logs, files, database content, diagnostics) for ordinary support through a dashboard support case; describe it or attach screenshots there. General questions may be emailed to support@percher.app; the abuse@, security@ and legal@ reporting channels are unchanged.

Export rate limits per app per 24h: Free 1, Starter 1, Maker 2, Max 5. Per app, not per account; each attempt counts even if the download is cancelled.

Full guide: https://percher.app/docs/export-data
