. Allow the entire backup run to be halted by an action, thanks to
Matthew Palmer (Closes: #455836)
. Fixed tr construct reporting a warning (Closes: #452669)
+ lib changes
+ vserver:
+ . added vservers_running function
handler changes
dup:
. General cleanup
new syntax.
. Support every duplicity-supported transport with new configuration
option desturl (Closes: #483712, #346040, Trac#2).
- . Actually allow to backup only VServers, by relaxing $include test.
+ .
+ Actually allow to backup only VServers, by relaxing $include test.
ldap:
. support HDB backend just as the BDB one, and make message clearer
when no supported backend is found (Closes: #476910)
sys:
. update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms
(Closes: Trac#39)
+ . use new vservers_running function from lib/vserver
version 0.9.5 -- December 2, 2007
backupninja changes
for vserver in $found_vservers; do
info "examining vserver: $vserver"
# is it running ?
- $VSERVERINFO -q $vserver RUNNING
+ vservers_running $vserver
if [ $? -ne 0 ]; then
warning "The vserver $vserver is not running."
continue
return 0
}
+##
+## If all the arguments are running vservers names, returns 0.
+## Else, returns 1. Also returns 1 if no argument is given.
+##
+vservers_running() {
+ [ $# -ge 1 ] || return 1
+ local args="$1"
+ local vserver
+ for vserver in $args ; do
+ $VSERVERINFO -q $vserver RUNNING || return 1
+ done
+ return 0
+}
+
##
## If the argument is the name of a vserver selected by the current helper,
## echoes 'on' and returns 0.