Show Table of Contents
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-roption 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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.