# Backup and restore testdb

**Target length:** 6 minutes  
**Kernel on camera:** 2.74.26 (store files are testdb.bin). CLI train 2.73.35.  
**Audience:** Operator who can insert testdb rows and wants a restorable snapshot.

Say this before any command: this is a testdb snapshot. It is not a Postgres dump. pgwire is not a backup target. native equals testdb. analog is not native. Do not say SQL Server, Oracle, or Redis backups.

ISAM teaching on the website is `/tools/isam-index`. Not a Community SKU. Not a Workbench zip.

## On-screen beats

1. `veloce help` — read the testdb snapshot sentence and `pgwire is not a backup target`.
2. `veloce backup --dir <data>`
3. Reply: `OK native=testdb ts=… dest=… rows=N`
4. `veloce backups --dir <data>`
5. Restore into a lab directory: `veloce restore <jsonl> --dir <restore>` then `GET TESTDB k1` or reopen.
6. Optional: `veloce backup --dir <data> --dest s3://demo/backups` only after showing `VELOCE_S3_LOCAL_ROOT` is a local folder, not live AWS.

## GUI vs CLI

| Show in the GUI | Show in the terminal |
| --- | --- |
| Overview testdb row count after restore (Refresh) | `veloce backup`, `veloce restore`, `veloce backups` |
| SQL box `SHOW BACKUP` if you want the catalog JSON | Workgroup `BACKUP TESTDB` is enterprise; CLI copies files in `--dir` |

## Spoken script

“I am not dumping Postgres. I am copying testdb.bin plus idx, recno, meta, and pgw-pk. Same format as BACKUP TESTDB.”

```text
veloce help
```

Read the line: testdb snapshot, not a Postgres dump. pgwire is not a backup target.

```text
veloce backup --dir C:\VeloceDB\Data
```

“Reply starts with OK, native testdb, a timestamp, a dest path under backups, row count.”

```text
veloce backups --dir C:\VeloceDB\Data
```

“A list of testdb snapshots. Every row says native testdb.”

Restore only into a lab directory:

```text
veloce restore C:\VeloceDB\Data\backups\testdb.latest.jsonl --dir C:\VeloceDB\LabRestore
```

Cloud, if you have thirty seconds:

“s3 slash slash is put after the local snapshot. I can point VELOCE_S3_LOCAL_ROOT at a folder so this demo never calls AWS. Live buckets need AWS_ACCESS_KEY_ID on the machine, not in the git repo.”

Close.

“We backed up testdb. We did not back up Postgres, Redis, SQL Server, or Oracle. Incremental WAL leftover is named leftover.”

## Exact commands

```text
veloce help
veloce backup --dir ./data
veloce backups --dir ./data
veloce restore ./data/backups/testdb.latest.jsonl --dir ./restore
```

Cloud URI examples (local double for tests):

```text
set VELOCE_S3_LOCAL_ROOT=C:\demo\s3
veloce backup --dir ./data --dest s3://bucket/backups
veloce restore s3://bucket/backups/testdb.latest.jsonl --dir ./restore
```

## Do not say

- That this is a Postgres dump, pg_dump, or PG datadir backup.
- That pgwire 15432 is a backup target.
- Redis / SQL Server / Oracle native backups.
- Actian, Pervasive. Desk is `/tools/isam-index`.
- Community. Workbench zip. Engine 3.
