此内容没有您所选择的语言版本。

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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.