Skip to content
Oxford Harrison edited this page Nov 15, 2024 · 7 revisions

DOCSCLI


Command: linkedql restore

Interactively perform a rollback or rollforward operation.

What it does: works as an alias of the linkedql rollback and linkedql rollforward commands.

By default, linkedql rollback is implied, but you can add the flag --forward to imply linkedql rollforward.

See related ➞ linkedql commit

Usage

Use the --desc flag to provide a restore description. (REQUIRED)

npx linkedql restore --desc="Rollback description"

Use the --forward flag to specify a rollforward operation:

npx linkedql restore --forward --desc="Re-commit description"

(If you ommit the --desc flag, you are prompted for a restore description on a db-by-db basis. This can be useful, depending!)

Use the --select flag to explicitly list databases to restore:

npx linkedql restore --select=database_1,database_3

Use the --quiet flag to turn off SQL previews:

npx linkedql restore --quiet
Clone this wiki locally