]> git.sur5r.net Git - bacula/bacula/commitdiff
Delete only restore bootstrap during director startup
authorEric Bollengier <eric@baculasystems.com>
Wed, 18 Jan 2012 14:57:28 +0000 (15:57 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:28 +0000 (14:50 +0200)
bacula/src/dird/dird.c

index 71284807b785b8596814d64885156a04ec3c6f27..9f1667fc2c15867210b29f6aa65eefd67b50f7a3 100644 (file)
@@ -1144,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");