]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Add new version of upgrade-win32-client.txt to examples directory.
authorKern Sibbald <kern@sibbald.com>
Mon, 25 Sep 2006 14:15:15 +0000 (14:15 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 25 Sep 2006 14:15:15 +0000 (14:15 +0000)
     Submitted by Michel Meyers.
kes  Print an INFO message in the job report when a Volume is marked Purged.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3502 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/examples/upgrade-win32-client.txt
bacula/src/dird/ua_purge.c
bacula/technotes-1.39

index 3ffe0eff77b634b4e8d844d0237d535bad056fd5..ef110a6c956ddc19bb9e985be6e17f308d9bbc8b 100644 (file)
@@ -12,7 +12,7 @@ and thought I'd share it with you:
 #!/bin/bash
 #
 # Remote Win32 client upgrade script
-# written by Michel Meyers (last update 02/02/04 16:10)
+# written by Michel Meyers (last update 2006-09-25 11:34)
 #
 # WARNING: Make sure that no bacula-fd.conf exists in the source directory!
 # You will destroy/overwrite all your client's configs if you don't
@@ -34,12 +34,12 @@ and thought I'd share it with you:
 # upgrade
 
 upgrade() {
-rpcclient -S $SERVERNAME -U $USERNAME%"$PASSWORD" -c "service stop bacula"
+net rpc -S $SERVERNAME -U $USERNAME%"$PASSWORD" service stop bacula
 sleep 30
 smbmount //$SERVERNAME/c$ /mnt -o username=$USERNAME,password="$PASSWORD"
 cp /home/michel/winbacula/bin/* /mnt/bacula/bin
 umount /mnt
-rpcclient -S $SERVERNAME -U $USERNAME%"$PASSWORD" -c "service start bacula"
+net rpc -S $SERVERNAME -U $USERNAME%"$PASSWORD" service start bacula
 }
 
 SERVERNAME=xerxes
@@ -64,5 +64,12 @@ mountpoint /mnt may not be usable on your system, ...)
 Note: The requirements are the same as described in my other document
 (Samba-TNG clients among others, otherwise you'll be missing rpcclient).
 
+Update 2006-09-25: Samba-TNG is no longer required, the 'net' command from
+Samba 3 works for starting and stopping services. Paths may need to be
+updated with quotation marks as the new Bacula Win32 Installer no longer 
+installs into C:\bacula but into 'C:\Program Files\bacula' (on English 
+Windows versions).
+
+
 Enjoy!
 
index f55e63f1099034f82cd16d866d028fb9b39f1fcd..eab0ba6794472b96b83692d7a6d1b702170f1bc2 100644 (file)
@@ -569,6 +569,10 @@ bool mark_media_purged(UAContext *ua, MEDIA_DBR *mr)
       }
       pm_strcpy(jcr->VolumeName, mr->VolumeName);
       generate_job_event(jcr, "VolumePurged");
+      if (ua->jcr) {
+         Jmsg1(jcr, M_INFO, 0, _("All records pruned from Volume \"%s\"; marking it \"Purged\"\n"),
+            mr->VolumeName); 
+      }
       return true;
    } else {
       bsendmsg(ua, _("Cannot purge Volume with VolStatus=%s\n"), mr->VolStatus);
index 59440762b2e04cf10405312ee5df8814b5007eb8..78e5f288a5064c57da2315e8d9fcfe1936a3739f 100644 (file)
@@ -1,6 +1,10 @@
               Technical notes on version 1.39  
 
 General:
+25Sep06
+kes  Add new version of upgrade-win32-client.txt to examples directory.
+     Submitted by Michel Meyers.
+kes  Print an INFO message in the job report when a Volume is marked Purged.
 24Sep06
 kes  Apply the recycle patch from Richard Mortimer.
 kes  Convert a few if statements in dev.c to switch statements.