Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

Script para copiar el contenido de la DB de sistema POA, POA MN o servidor UI

Article ID: 1934 
Last Review: Apr,23 2009
Author: Meritxell Sevilla
Last updated by: Meritxell Sevilla APPLIES TO:
  • Parallels Operations Automation 2.6

Resolución

El script de copias de seguridad de POA se incluye en la distribución base, aunque no se instala de forma predeterminada.

Lo encontrará aquí:
$DISTR/util/bin/backup.sh

Donde $DISTR es una raíz de distribución POA, como por ejemplo /root/distr/50.16.

El script presenta algunas opciones de línea de comandos (a partir de 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.

Por ejemplo, si desea que se realice una copia de seguridad de la base de datos del Nodo de Administración de POA cada noche a la 1:10 de la madrugada, guarde el script  backup.sh de la distribución de POA en /root/scripts/ y añada la siguiente línea a /etc/crontab:
10 1 * * * root /root/scripts/backup.sh -o <backups_dir> -t db

Donde <backups_dir> es el directorio de destino de copias de seguridad, que puede montarse en nfs.

Si no desea recibir la salida del script por email (cron envía la salida de forma predeterminada, vea la variable MAILTO en /etc/crontab),  añada la cadena con  >>/dev/null:
10 1 * * * root /root/scripts/backup.sh -o <backups_dir> -t db >> /dev/null



Keywords: backup


Subscription for changes to this article Subscription for changes to this article

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.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products