8.1 Using Backup and Restore Utility

Prerequisites

  • Before installing the Privileged Account Manager, edit the /etc/hosts file and add the mapping of IP address and system name. (<ip_address> <host_name>).

  • Before installing Privileged Account Manager, ensure that the newly installed OS has same IP address and the hostname.

  • Run the utility with the root level privileges in both Backup or Restore machine.

  • For restoring, soon after installing Privileged Account Manager, run the backup and restore utility to restore the present state to the backed up state.

  • Ensure that the Privileged Account Manager version is same for both Backup and Restore machine. To check the Privileged Account Manager version run the utility with the meta tag using the command: BackupRestore --password/--nopassword meta -f <backup_file_path>

  • Run the utility with the option to verify and ensure same packages are installed in Restore machine while doing the backup.

Backup and Restore Help Command

./BackupRestore -h
usage: BackupRestore [-h] (--password | --nopassword)
                     {backup,restore,meta} ...
choose backup, restore or to proceed.
positional arguments:
  {backup,restore,meta}
    backup              choose the backup mode - all(-A),
                        all_except_video(-D), video(-V)
    restore             provide the backup file location with argument -f
    meta                display metainfo
optional arguments:
  -h, --help            show this help message and exit
  --password            password for Backup file
  --nopassword          opt for un-protected backup file

Sample Output of Backup Command

BackupRestore --password/--nopassword backup <backup_option> -f <archive_path> --audit_path <audit_path> --video_path <video_path>
    --password: For password protected backup.
    --nopassword: To override the password protection
    -f <archive_path>: file location to store the backup.
    Backup-Options:

        -a : Backup all the database, config and video files
        -d: Backup the database and config files
        -v: Backup only the video files
    --audit_path: Optional Parameters. Custom audit path
    --video_path: Optional Parameters. Custom video path
   

Sample Output of Restore Command

BackupRestore --password/--nopassword restore -f <backup_file_path>
    --password: For password protected backup.
    --nopassword: To override the password protection
    -f <archive_path>: Full file location for the backup file.(e.g. /home/pam-backups/pam-backup-xxxxx.zip)

Sample Output of the Backup and Restore Command