Linux Servers
The full backup procedure is the same for all hardware nodes running Linux services, meaning you can use the backup instructions below to back up a hardware node which has any Linux service installed.
Note: If a Linux service node is running on a Virtual Private Server, use Automated VPS backup procedure described in the Virtuozzo Containers for Linux/Virtuozzo Containers for Windows section.
Below you will find backup and recovery solutions for Linux service nodes running on real hardware nodes.
Important: 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. And also it is important to recover 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 a remote server:
/usr/local/pem/bin/backup.sh [-o output_directory] [-x exclude_pattern…] –t tag –h host path
where the arguments are:
-o output_directory
: a local output directory.-x exclude_pattern
: exclude files and directories that match specified pattern.-t tag
: an arbitrary tag (not equal to “mn”, “db” and “ui”).-h host
: source server.-z
: compress with gzip.path
: the path for backup.
/usr/local/pem/bin/restore.sh –h host -f backup_file
where the arguments are:
-h host
: a source server.-f backup_file
: a backup file to restore.
Partial backup procedures for servers running Linux services are described below.