Search Engine: Elastic

Article ID: 130606, created on Apr 10, 2017, last review on Apr 10, 2017

  • Applies to:
  • Operations Automation 7.0

Symptoms

It is not possible to backup the UI host on OA 7.0, while trying to configure the system backup by following the steps from [OA Maintenance Guide] Configure system backup.

[root@osscore ~]# /usr/local/pem/bin/backup.sh -z -t ui
Tag:                    ui
Database host:          osscore.example.com
Output directory:       /var/tmp/sysbackups
Use gzip:               yes
----------------
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
backup.sh error: backup failed

Cause

The backup.sh script has not been adapted to 7.0 specifics yet, the improvement is expected in scope of request POA-110903.

Resolution

Edit the script and replace the line with SELECT:

"SELECT c.host_id FROM components c JOIN packages p \
                    ON (p.pkg_id = c.pkg_id) WHERE p.name = 'chief' AND \
                    p.ctype = 'cp'"

with the following query:

"SELECT c.host_id  FROM components c JOIN packages p ON (c.pkg_id = p.pkg_id) JOIN hosts h ON (c.host_id = h.host_id) WHERE p.name = 'pui-war' AND p.ctype= 'other'"

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF