/* Set type in global for debugging */
set_db_type(db_get_type(db));
-#ifdef BEEF_DEMO
- /*
- * Demo mode only allows SQLite3
- */
- if (!bstrcmp(db_get_type(db), "SQLite3")) {
- Jmsg(NULL, M_FATAL, 0, _("Failed to initialize database backend\n"));
- OK = false;
- }
-#endif
-
db_close_database(NULL, db);
}
return OK;
POOLMEM *cleanup = get_pool_memory(PM_MESSAGE);
POOLMEM *results = get_pool_memory(PM_MESSAGE);
copy_base_name(cleanup);
- pm_strcat(cleanup, "*.bsr");
+ pm_strcat(cleanup, "*.restore.*.bsr");
run_program(cleanup, 0, results);
copy_base_name(cleanup);
pm_strcat(cleanup, "*.mail");