You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on-off indicating whether to offer local control files
forcedel
on-off indicating whether to remove backup files
async
default "no", if "yes" run the task in asynchronous mode
The status of a task running in asynchronous mode can be checked using the 'gettaskstatus' api
Only one of these database tasks — addvoldb, backupdb, checkdb, compactdb, copydb, createdb, deletedb, loaddb, optimizedb, renamedb, restoredb, startdb, stopdb, unloaddb — can run against the same dbname/rename at a time, whether or not async is used; a request is rejected immediately if another one of them is already running on that database
if failed, a brief description will be given here; on a successful rename, may instead carry a warning that a manual check is recommended (see below)
Renaming the database itself is what status reflects. Afterward, CMS also does best-effort bookkeeping: updating the database's entries in its own user-authorization file (cmdb.pass) and in the auto-job config files (addvoldb/backupdb/history/execquery) to the new name. If any of that bookkeeping fails - a lock timeout, a file I/O error, or an internal update error - the rename is not rolled back; status still reports "success", and note instead names exactly which of those file(s) could not be updated and should be checked and cleaned up manually. This applies whether the task is run synchronously or with async:"yes".
{
"__EXEC_TIME": "360 ms",
"note": "WARNING: database 'destinationdb' was renamed to 'anotherdb', but the following bookkeeping file(s) could not be updated (lock timeout, file I/O error, or an internal update error): the auto-job addvoldb config file, the auto-job execquery config file; stale entries still referencing the old name 'destinationdb' may remain and should be checked and cleaned up manually",
"status": "success",
"task": "renamedb"
}