]> git.sur5r.net Git - bacula/bacula/commitdiff
Doc + FreeBSD compile problems
authorKern Sibbald <kern@sibbald.com>
Wed, 23 Apr 2003 09:55:20 +0000 (09:55 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 23 Apr 2003 09:55:20 +0000 (09:55 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@455 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/dird/bacula-dir.conf.in
bacula/src/dird/job.c
bacula/src/lib/bnet_server.c

index 491d1fa5e5eb40ab432862495f3d9a4a6a196d6a..0f2169c5ec4da8155c8ad6820a7da2789a366a42 100644 (file)
@@ -1,5 +1,5 @@
                  Kern's ToDo List
-                  18 April 2003 
+                  22 April 2003 
 
 Documentation to do: (a little bit at a time)
 - Document running a test version.
@@ -22,8 +22,7 @@ For 1.30 release:
 
 - Document new transparent Console commands and wait command.
 - Document new immediate File save configuration (walk user
-  through first save to file Volume with automatic Volume
-  labeling?).
+  through first save to file Volume with automatic Volume labeling?).
 - Document OPTIMIZE TABLE in MySQL
 - Document labeling a whole magazine using "cat"
 - Document Lutz Kittler's trick of using "Run Before Job" to
@@ -31,8 +30,7 @@ For 1.30 release:
 - Document Ludovic Strappazon's Win32 raw device save/restore.
 - Document not to restore .journal .autofsck
 - Document logrotate
-- Document default file backup
-- Document . command
+- Document . and @ commands
 - Document run when.
 
 - Figure out how to use ssh or stunnel to protect Bacula communications.
@@ -974,4 +972,3 @@ rufus-dir: Volume used once. Marking Volume "File0003" as Used.
 - Do not ignore SIGCHLD
 - Add Cleaning to list of volume statuses 
 - Implement run at "xxx"
-
index 9eface5fd8302fa4d1bd8a435249f78ec007f58b..1b1e7d2801d86498792087ad028aae7f8a357d49 100644 (file)
@@ -94,7 +94,7 @@ FileSet {
 # If you backup the root directory, the following two excluded
 #   files can be useful
 #
-  Exclude = { /proc; /tmp }
+  Exclude = { /proc /tmp /.journal /.fsck }
 }
 
 #
index d5481b5e96750ac44a432e380d648c7545a26822..79ca09e87041ab5874fac7d5ea801f00923ee908 100644 (file)
@@ -125,7 +125,6 @@ void run_job(JCR *jcr)
                            jcr->catalog->db_port, jcr->catalog->db_socket);
    if (!db_open_database(jcr, jcr->db)) {
       Jmsg(jcr, M_FATAL, 0, "%s", db_strerror(jcr->db));
-      db_close_database(jcr, jcr->db);
       set_jcr_job_status(jcr, JS_ErrorTerminated);
       free_jcr(jcr);
       return;
@@ -138,7 +137,6 @@ void run_job(JCR *jcr)
    jcr->jr.JobStatus = jcr->JobStatus;
    if (!db_create_job_record(jcr, jcr->db, &jcr->jr)) {
       Jmsg(jcr, M_FATAL, 0, "%s", db_strerror(jcr->db));
-      db_close_database(jcr, jcr->db);
       set_jcr_job_status(jcr, JS_ErrorTerminated);
       free_jcr(jcr);
       return;
@@ -590,6 +588,10 @@ void set_jcr_defaults(JCR *jcr, JOB *job)
       case JT_BACKUP:
         jcr->JobLevel = L_INCREMENTAL;
         break;
+      case JT_RESTORE:
+      case JT_ADMIN:
+        jcr->JobLevel = L_FULL;
+        break;
       default:
         break;
       }
index ba24a153c12eab2ebbbc98921b00e56d3035c05b..22505364d456a33c5f1c2f8ac28fdd74af697395 100644 (file)
@@ -25,6 +25,7 @@
   */
 
 #include "bacula.h"
+#undef DEV_BSIZE
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
@@ -36,6 +37,7 @@
 #include <resolv.h>
 #endif
 
+
 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
 
 #ifdef HAVE_LIBWRAP