Developers Documentation



301 error for file:

User Tools

Site Tools

Restore Configuration Backup from Command Line

Restoring your Configuration Backup can be easily done from Webconfig. This guide, however, assists in a situation where you only have SSH or Console access to ClearOS. This guide is compatible with versions 6.x and 7.x of ClearOS.

Locate the Configuration Backup file

First you will need to locate the Configuration Backup file you wish to restore from. They are found in this directory: '/var/clearos/configuration_backup/' or can be in a location that you uploaded an off-line backup to. You can list all Configuration Backup files found in that directory by executing the following command:

ls /var/clearos/configuration_backup/

Command to restore from Configuration Backup file

You must run the following commands as 'root'.

Then you can execute the following command:

configuration-restore -f {path_and_filename_of_config_file_to_be_restored}

This can take up to five minutes to complete.

Check Progress of Restoration

You can check the progress by executing the following command:

tail -f /var/clearos/framework/tmp/configuration_backup.json
content/en_us/kb_restore_configuration_backup_from_command_line.txt · Last modified: 2019/01/08 09:06 by nickh