jstests/libs/backup_utils.js
/**
 * Exhaust the backup cursor and copy all the listed files to the destination directory. If `async`
 * is true, this function will spawn a Thread doing the copy work and return the thread along
 * with the backup cursor metadata. The caller should `join` the thread when appropriate.
 */
Exhaust the backup cursor and copy all the listed files to the destination directory. If `async`
is true, this function will spawn a Thread doing the copy work and return the thread along
with the backup cursor metadata. The caller should `join` the thread when appropriate.
Exhaust the backup cursor and copy all the listed files to the destination directory . If ` async ` is true this function will spawn a Thread doing the copy work and return the thread along with the backup cursor metadata . The caller should ` join ` the thread when appropriate .
function copyBackupCursorFiles(
    backupCursor, namespacesToSkip, dbpath, destinationDirectory, async, fileCopiedCallback) {
    resetDbpath(destinationDirectory);
    mkdir(destinationDirectory + "/journal");
    let copyThread = copyBackupCursorExtendFiles(
        backupCursor, namespacesToSkip, dbpath, destinationDirectory, async, fileCopiedCallback);
    return copyThread;
}
function copyBackupCursorFiles ( backupCursor , namespacesToSkip , dbpath , destinationDirectory , async , fileCopiedCallback ) { resetDbpath ( destinationDirectory ) ; mkdir ( destinationDirectory + "/journal" ) ; let copyThread = copyBackupCursorExtendFiles ( backupCursor , namespacesToSkip , dbpath , destinationDirectory , async , fileCopiedCallback ) ; return copyThread ; }
Exhaust the backup cursor and copy all the listed files to the destination directory.
Exhaust the backup cursor and copy all the listed files to the destination directory .