This commit is contained in:
2020-07-18 19:23:43 -04:00
parent d0325fd9b9
commit c061613302
7 changed files with 23 additions and 6 deletions

View File

@@ -143,3 +143,8 @@ GHashTable *store_read_all(store_t *store) {
return table;
}
void store_copy(store_t *store, const char *destination) {
mkdir(destination, S_IWUSR | S_IRUSR | S_IXUSR);
mdb_env_copy(store->env, destination);
}

View File

@@ -27,4 +27,6 @@ char *store_read(store_t *store, char *key, size_t key_len, size_t *ret_vallen);
GHashTable *store_read_all(store_t *store);
void store_copy(store_t *store, const char *destination);
#endif