When you run a "bad" command, the xbm cli doesn't provide proper exit codes:
[root@vagrant-node002 ~]# /usr/local/xbm/xbm backup add 10.0.2.15 "inst31
backup" CONTINC "* * * * *" /var/tmp /backup/inst31/data xbm xbm
PHP Warning: date_default_timezone_get(): It is not safe to rely on the
system's timezone settings. You are *required* to use the date.timezone setting
or the date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely misspelled the
timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in
/usr/local/xbm/includes/init.php on line 47
XtraBackup Manager v0.81 - Copyright 2011-2012 Marin Software
Error: A Scheduled Backup already exists for host 10.0.2.15 with a name
matching: inst31 backup
[root@vagrant-node002 ~]# echo $?
0
[root@vagrant-node002 ~]#
[root@vagrant-node002 ~]# /usr/local/xbm/xbm backup add 10.0.2.15 "siteinst31
backup" CONTINAAC "* * * * *" /var/tmp /backup/siteinst31/data xbm xbm
PHP Warning: date_default_timezone_get(): It is not safe to rely on the
system's timezone settings. You are *required* to use the date.timezone setting
or the date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely misspelled the
timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in
/usr/local/xbm/includes/init.php on line 47
XtraBackup Manager v0.81 - Copyright 2011-2012 Marin Software
Error: The Backup Strategy Code given is invalid. Valid codes are:
CONTINC,FULLONLY,ROTATING
[root@vagrant-node002 ~]# echo $?
0
Original issue reported on code.google.com by imriz...@gmail.com on 26 Aug 2013 at 11:25
Original issue reported on code.google.com by
imriz...@gmail.com
on 26 Aug 2013 at 11:25