I've a doubt and don't find what's wrong inside my definition
In jobs I've those instruction
# Create a lvm dump of configuration
RunScript {
RunsWhen = Before
RunsOnClient = Yes
FailJobOnError = No
Command = "/sbin/lvmdump -m"
}
# Remove the configuration dump
RunScript {
RunsWhen = After
RunsOnClient = Yes
FailJobOnError = No
Command = "/usr/bin/rm -f /root/lvmdump-*.tgz"
}
In the log of jobs all of them where executed
22-Apr 00:30 dumbo-fd JobId 1978: shell command: run ClientBeforeJob
"/sbin/lvmdump -m"
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Creating dump directory:
/root/lvmdump-dumbo-20150421223001
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob:
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering LVM &
device-mapper version info...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering dmsetup info...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering process info...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering console messages...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering /etc/lvm info...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering /dev listing...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering /sys/block
listing...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Gathering LVM metadata from
Physical Volumes...
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: /dev/md127
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: /dev/sdc1
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: /dev/sdd1
22-Apr 00:30 dumbo-fd JobId 1978: ClientBeforeJob: Creating report tarball in
/root/lvmdump-dumbo-20150421223001.tgz...
22-Apr 00:40 dumbo-fd JobId 1978: shell command: run ClientAfterJob
"/usr/bin/rm -f /root/lvmdump-*.tgz"
But unfortunately, the *.tgz are still there after.
Can a fresh pair of eyes point me what's I've done wrong ?
Thank.
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
openSUSE Member & Board, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.