Restoring server configuration from the command line interface
- To restore a server configuration from the command line interface as a "root" user, copy the backup file in /data/tmp on the SMC server using SSH.
- Log in to the SMC server via the console of your hypervisor or in SSH.
- Enter the command
smc-config-restore --backup-file /path/to/backup
. Replace/path/to/backup
with the path and name of the file. - If the backup file has been encrypted with a password, enter the command smc-config-restore --backup-file /path/to/backup --password <my_password>. Replace /path/to/backup with the path of the file and my_password with the encryption password of the backup.
- Reboot.
To know how to create a server backup, refer to sections Saving the server configuration from the web interface and Saving the server configuration from the command line interface.