← All text tools

Database Backup and Restore Command Builder

Build the dump and restore command line for MySQL, PostgreSQL, MongoDB or SQLite from host, user, database, tables and options, with every flag explained.

  • Free
  • No sign-up
  • Works on any device

About Database Backup and Restore Command Builder

Backup commands have many flags, and one wrong flag can give a dump that cannot be restored. Choose MySQL, PostgreSQL, MongoDB or SQLite, backup or restore, and fill in host, port, user, database and optional tables. The tool writes the command for mysqldump and mysql, pg_dump with plain, custom, directory or tar format and pg_restore or psql, mongodump and mongorestore, or sqlite3 with .backup and .dump, and explains every flag in a table. Passwords are never put in the command: the tool prompts for them.

How to use Database Backup and Restore Command Builder

  1. Choose the database and whether you want a backup or a restore.
  2. Enter the connection details, the database or file name and any tables, then set the options: compression, structure only, parallel jobs and so on.
  3. Copy the command into a terminal, and read the table to see what each flag does before you run it.

Why use this tool?

Also known as

Frequently asked questions

Why does the command not contain my password?

A password on the command line can be read by other users of the machine and is stored in your shell history. The commands ask for it, or read PGPASSWORD or a password file.

Which PostgreSQL format should I choose?

Custom format is compressed and lets pg_restore choose what to restore. Directory format adds parallel dump and restore for big databases. Plain SQL is readable and works with psql and other tools.

How do I know a backup is good?

Restore it into a spare server and check the data. A dump that has never been restored is only a hope. Keep at least one copy on a different machine.

Is Database Backup and Restore Command Builder free?

Yes. Database Backup and Restore Command Builder on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.