restore

restore  [--do_not_restore_types] [--file] [--binary]

Restores database from a backup source. This command requires connection to a user database.

Options

Option

Explanation

–do_not_restore_types, -t

assumes all types exist in database

–file, -f

reads objects from specified file

–binary, -b

user binary format rather than json

Example

tomas@tomsmbp:~/ > dboo MyDB -u=MyUser
dboo MyUser@MyDB> restore < ./mybackup.bak
dboo MyUser@MyDB> restore --file=./mybackup.bak
dboo MyUser@MyDB>
tomas@tomsmbp:~/ > dboo MyDB -u=MyUser -- restore < ./myotherbackup.bak

tomas@tomsmbp:~/ > dboo MyDB -u=MyUser -- restore --file=./myotherbackup.bak