Product:
Search Type:

Script to backup POA system DB content, POA MN or UI server

Article ID: 1934 
Last Review: Jul,15 2008
APPLIES TO:
  • Parallels Automation 2.6

RESOLUTION

POA backup script is included into the base distribution, but not installed by default. It can be found here:
$DISTR/util/bin/backup.sh
where $DISTR is a root of POA distribution, e.g. /root/distr/50.16
The script has quite a few command-line options (as of POA/PEM 2.7):
[root@osscore bin]# ./backup.sh --help
backup.sh: back up PEM subsystem or PEM server

Usage: backup.sh [options]

  --help                        This message
  -o, -output-directory         Directory to place backup file to.
                                Directory will be created if it does not exist.
  -z                            GZip produced tarballs
  -t <tag>                      Make backup with specified tag. Valid tags are:
                                db - back up system DB
                                mn - back up Management Node files
                                ui - back up all UI servers in PEM cluster
                                <arbitrary string> - create file backup from
                                specified list of directories
If tag is an arbitrary string, following options may also be used:
  -x                            <path> - exclude directory or file <path> from
                                backup. This option mayt be specified
                                multiple times.
  -h host, --host host          Specify host to backup. Backup file still will
                                be stored locally.

For example, to backup POA Management Node database every night at 1:10am, put the backup.sh script  from POA distribution to /root/scripts/ and add the following line into /etc/crontab:
10 1 * * * root /root/scripts/backup.sh -o <backups_dir> -t db

where <backups_dir> is the destination backup directory, which can be nfs mounted.
If you do not wish to receive script output by e-mail (cron sends output to root by default, see MAILTO variable in /etc/crontab),  append the string with >>/dev/null:
10 1 * * * root /root/scripts/backup.sh -o <backups_dir> -t db >> /dev/null
Keywords: backup

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields