From: Kern Sibbald Date: Mon, 25 Sep 2006 14:15:15 +0000 (+0000) Subject: kes Add new version of upgrade-win32-client.txt to examples directory. X-Git-Tag: Release-2.0.0~415 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17e7adef8f3d2d7031e93dad1345d981262dfdf4;p=bacula%2Fbacula 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. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3502 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/examples/upgrade-win32-client.txt b/bacula/examples/upgrade-win32-client.txt index 3ffe0eff77..ef110a6c95 100644 --- a/bacula/examples/upgrade-win32-client.txt +++ b/bacula/examples/upgrade-win32-client.txt @@ -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! diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index f55e63f109..eab0ba6794 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -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); diff --git a/bacula/technotes-1.39 b/bacula/technotes-1.39 index 59440762b2..78e5f288a5 100644 --- a/bacula/technotes-1.39 +++ b/bacula/technotes-1.39 @@ -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.