]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/dird.c
Tweak example SD plugin.
[bacula/bacula] / bacula / src / dird / dird.c
index c00ec5e53282527e3f0e33d8b873d4567b6c9fab..9f1667fc2c15867210b29f6aa65eefd67b50f7a3 100644 (file)
@@ -1119,16 +1119,6 @@ static bool check_catalog(cat_op mode)
       /* 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;
@@ -1154,7 +1144,7 @@ static void cleanup_old_files()
    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");