[][src]Function lmdb_sys::mdb_env_copy

pub unsafe extern "C" fn mdb_env_copy(
    env: *mut MDB_env,
    path: *const c_char
) -> c_int

@brief Copy an LMDB environment to the specified path.

This function may be used to make a backup of an existing environment. No lockfile is created, since it gets recreated at need. @note This call can trigger significant file size growth if run in parallel with write transactions, because it employs a read-only transaction. See long-lived transactions under @ref caveats_sec. @param[in] env An environment handle returned by #mdb_env_create(). It must have already been opened successfully. @param[in] path The directory in which the copy will reside. This directory must already exist and be writable but must otherwise be empty. @return A non-zero error value on failure and 0 on success.