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 [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