#!/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
# 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
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!
}
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);
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.