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.
  1. Execute service luci stop.
  2. 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.
  3. Execute service luci start.
Use the following procedure to restore a luci database.
  1. Execute service luci stop.
  2. 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.
  3. Execute service luci start.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.