Este conteúdo não está disponível no idioma selecionado.
4.4. Backing Up and Restoring the luci Configuration
You can use the following procedure to make a backup of the luci database, which is stored in the
/var/lib/luci/var/Data.fs
file. This is not the cluster configuration itself, which is stored in the cluster.conf
file. Instead, it contains the list of users and clusters and related properties that luci maintains.
- Execute
service luci stop
. - Execute
luci_admin backup [backup_xml_file_path
].Specifying the backup_xml_file_path is optional. If you do not specify a file path, the backup file will be written to/var/lib/luci/var/luci_backup.xml
. - Execute
service luci start
.
Use the following procedure to restore a luci database.
- Execute
service luci stop
. - Execute
luci_admin restore -r backup_xml_file_path
.If you do not specify a backup path argument, the command uses/var/lib/luci/var/luci_backup.xml
.Specifying the-r
option indicates that you will replace all configuration with the configuration specified in the backup file. If you do not specify this option, the default behavior (which you can also specify with the-u
) is to merge any additional configuration information from the XML backup into the current database. - Execute
service luci start
.