Backing up and restoring databases
You can back up databases to permanent storage (or any POSIX filesystem that allows read/write access) by:
- calling qdb_backup() from a client application
- passing the -b option to qdbc
- using the resource manager interface as follows:
echo backup dbname >/dev/qdb/.control
These methods are affected by options in the database configuration object.
To restore a database, start qdb with the -R option set to auto.
For more information about this option, see the Database Recovery
section in
the QDB Command Line chapter.
You can cancel a database backup in client code by calling qdb_bkcancel().
You can also cancel a backup operation using the QDB resource manager interface:
echo cancel >/dev/qdb/.control
Page updated:
