Your browser does not allow storing cookies. We recommend enabling them.

SSH

Restoring a Backup

[Note]Note

Note that the Management Server must not be running when a restore is performed.

You can restore a backup version with command-line tool ssh-mgmt-backup that is located in <server-root>/server/sbin (by default /opt/ssh-mgmt/server/sbin).

The command syntax is:

ssh-mgmt-restore [options] <archive>

where:

archive is the path to the backup archive

Options available:

-r, --root=DIR

The root directory of the hierarchy where the Management Server is restored. Default: /

-C, --no-checksum

Backup archive checksums are not verified. Default: checksums are verified.

-I, --show-metadata

Show backup archive metadata and exit. Default: perform restore.

-y, --assume-yes

Assume answer yes to all interactive questions. Default: prompt user.

Example commands:

ssh-mgmt-restore ssh-mgmt-backup-200501011200.mbk

Restores the Management Server configuration data and Management Database to the state that they were in when the backup archive ssh-mgmt-backup-200501011200.mbk was created.

ssh-mgmt-restore -r /tmp/ssh-mgmt-test -C -y ssh-mgmt-backup-test.mbk

Restores the Management Server configuration data and Management Database into the hierarchy rooted at /tmp/ssh-mgmt-test, not verifying backup archive integrity and assuming a yes answer to potential interactive questions.

ssh-mgmt-restore -I ssh-mgmt-backup.mbk

Outputs metadata of backup archive ssh-mgmt-backup.mbk and exits without performing any further operations.


 

 
PrivX
 

 

 
What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.



    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH



    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now