Export, backup & restore

Save rows as CSV, Excel, JSON or SQL, back up a whole database, and restore a dump safely.

Save what you see and save whole tables

  • Results ⋯ → Visible loaded Data saves exactly the rows on screen, in the order and with the filters you see. This is free in every edition.
  • Export table... saves every row of a table, not only the loaded pages. From a table tab it applies your filter and sort; from the Explorer it exports the whole table. Exporting a whole table or a complete query comes with Personal and Team.
  • Results ⋯ → Execute scratchpad + full export runs the whole draft fresh and writes the complete result to a file, without replacing your grid.

Exports run to a temporary file and only appear under the name you chose when they finish cleanly, so a cancelled or failed export never leaves half a file behind. Existing files are never overwritten.

Formats

FormatBest for
CSVSpreadsheets and other tools. Text is raw, and SQL NULL is written as \N.
Excel (XLSX)Handing data to someone who just opens it in Excel, Numbers or Google Sheets.
Typed JSONLossless interchange: every column's type and value, including numbers at full precision and binary data.
SQL INSERTReplaying rows into another database, quoted correctly for the engine.

Very large exports stream straight to disk instead of filling memory, so a big table does not need to fit in RAM — though anything over 1 GB is refused with a clear message.

Save a single value

In the Inspector's Cell view, Copy takes the value and Save full value writes it to a file. For a long value the grid only previews, Fetch + save reads that one row again and saves the complete value.

Back up a database

Backup / Dump database... writes a backup without changing anything, so it works in read-only mode.

  • SQLite copies the database file itself, or writes a SQL script of the schema and rows.
  • PostgreSQL uses pg_dump.
  • MySQL and MariaDB use mysqldump or mariadb-dump.

The PostgreSQL and MySQL tools have to be installed on your computer; Row Patrol uses the ones you already have and tells you if none is found. Options let you leave out the data (Schema only) or back up just the table you are looking at. Your sign-in, TLS and any tunnel are reused, and passwords are passed to the tool in a way that keeps them out of its command line.

A half-finished backup is deleted, and an existing file is only replaced if you tick Overwrite. Backup and restore are not available for SQL Server, which has its own BACKUP DATABASE command.

Restore from a dump

Restore database from dump… needs Writing mode and shows you exactly what will run before it starts: the file, its format and the tool that will use it.

  • PostgreSQL pg_dump archives and plain SQL files are restored in one transaction, so a failure leaves the database untouched.
  • SQLite backups and SQL dumps are restored in one transaction as well.
  • MySQL and MariaDB scripts commit statement by statement, so a failure can leave part of the restore applied. Row Patrol warns you before it starts.

On production you type RESTORE to confirm. Afterwards the app says plainly which state the database is in: Restored, Nothing restored or Partly restored.

A dump runs as written, with your own database privileges, and the app's usual statement checks do not apply to files. Only restore files you trust.