Linux Servers
The recovery process is the same for all hardware nodes running Linux services. You can use the recovery instructions below to back up and restore a hardware node which has any Linux service installed.
Note: If a Linux service node is running on a Virtual Private Server, use the recovery procedure described in the Virtuozzo Containers for Linux and Virtuozzo Containers for Windows section.
The following scripts cover backup and recovery solutions for Linux service nodes running on real hardware nodes.
In order to save the ownership of the files and directories, it is necessary to back up the local password database before backing up the other data. It is important to recover the local password database before restoring the other data.
The local password database is kept in two files:
/etc/passwd/etc/shadow
The /usr/local/pem/bin/backup.sh and /usr/local/pem/bin/restore.sh scripts on the Operations MN can be used for backing up and restoring arbitrary files and directories on any Linux server. These scripts use SSH to access the remote server:
/usr/local/pem/bin/backup.sh [-o output_directory] [-x exclude_pattern…] –t tag –h host path
where arguments are:
-o output_directory: the local output directory.-x exclude_pattern: excluding the files and directories that match a specified pattern.-t tag: an arbitrary tag (not equal to “mn”, “db” and “ui”).-h host: the source server.-z: compress with gzippath: the path to backup
/usr/local/pem/bin/restore.sh –h host -f backup_file
where arguments are:
-h host: the source server.-f backup_file: the backup file.-F: (optional) If specified, all existing files will be removed during restoration process. If an option is not specified, the restoration script will refuse overwriting existing files.