Start a database backup
#include <qdb/qdb.h> int qdb_backup( qdb_hdt_t *db, int scope );
qdb
This function performs a backup on the connected database hdl, and optionally any attached databases, depending on the scope argument. Backups are controlled in the configuration file, via the Backup Dir= and Compression= options. For more information about these options, see the Configuration File section of the chapter Starting QDB.
A client can cancel a backup operation by calling qdb_bkcancel(). If a backup is cancelled (either by a client or via the QDB resource manager interface), the call to qdb_backup() fails and returns -1, with errno set to EINTR.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |