]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/backup.c
Add new files
[bacula/bacula] / bacula / src / dird / backup.c
index 7200a043d5970ea512b0b8fdb3b1b27d5c6012bb..a96206f4ce22f08eca63aa26db5e941469bf80e5 100644 (file)
@@ -41,7 +41,7 @@
 /* Commands sent to File daemon */
 static char backupcmd[] = "backup\n";
 static char storaddr[]  = "storage address=%s port=%d ssl=%d\n";
-static char levelcmd[]  = "level = %s%s\n";
+static char levelcmd[]  = "level = %s%s mtime_only=%d\n";
 
 /* Responses received from File daemon */
 static char OKbackup[]   = "2000 OK backup\n";
@@ -120,7 +120,7 @@ int do_backup(JCR *jcr)
         jcr->jr.JobId = 0;
         if (!db_find_job_start_time(jcr, jcr->db, &jcr->jr, &jcr->stime)) {
             Jmsg(jcr, M_INFO, 0, "%s", db_strerror(jcr->db));
-            Jmsg(jcr, M_INFO, 0, _("No prior or suitable FULL backup found. Doing FULL backup.\n"));
+            Jmsg(jcr, M_INFO, 0, _("No prior or suitable Full backup found. Doing FULL backup.\n"));
             bsnprintf(since, sizeof(since), " (upgraded from %s)", 
               level_to_str(jcr->jr.Level));
            jcr->JobLevel = jcr->jr.Level = L_FULL;
@@ -224,16 +224,14 @@ int do_backup(JCR *jcr)
     */
    switch (jcr->JobLevel) {
       case L_BASE:
-         bnet_fsend(fd, levelcmd, "base", " ");
+         bnet_fsend(fd, levelcmd, "base", " ", 0);
         break;
       case L_FULL:
-         bnet_fsend(fd, levelcmd, "full", " ");
+         bnet_fsend(fd, levelcmd, "full", " ", 0);
         break;
       case L_DIFFERENTIAL:
       case L_INCREMENTAL:
-         bnet_fsend(fd, levelcmd, "since ", jcr->stime);
-        free_pool_memory(jcr->stime);
-        jcr->stime = NULL;
+         bnet_fsend(fd, levelcmd, "since ", jcr->stime, 0);
         break;
       case L_SINCE:
       default:
@@ -258,13 +256,8 @@ int do_backup(JCR *jcr)
    return 1;
 
 bail_out:
-   if (jcr->stime) {
-      free_pool_memory(jcr->stime);
-      jcr->stime = NULL;
-   }
    backup_cleanup(jcr, JS_ErrorTerminated, since, &fsr);
    return 0;
-
 }
 
 /*
@@ -488,7 +481,7 @@ Files Written:          %s\n\
 Bytes Written:          %s\n\
 Rate:                   %.1f KB/s\n\
 Software Compression:   %s\n\
-Volume names(s):        %s\n\
+Volume name(s):         %s\n\
 Volume Session Id:      %d\n\
 Volume Session Time:    %d\n\
 Last Volume Bytes:      %s\n\