官术网_书友最值得收藏!

Backing up your configuration file via the CLI

In this recipe, we will learn how to backup our configuration via the CLI. Essentially, the CLI backs up the standalone.xml file by copying it into the snapshot.

Getting ready

Start up your WildFly so that we can directly connect to it via the CLI, as follows:

$ cd ~/WFC/wildfly
$ ./bin/standalone.sh

How to do it…

The command itself is pretty easy:

$ ./bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] :take-snapshot  
{
    "outcome" => "success",
    "result" => "/home/luigi/WFC/wildfly/standalone/configuration/standalone_xml_history/snapshot/20150301-165737562standalone.xml"
}

That's it! A backup of the standalone.xml file gets copied into the snapshot folder, named by prefixing the file with the current date and time.

Tip

Always back up your configuration, especially when operating in a production environment.

主站蜘蛛池模板: 防城港市| 宿州市| 铜鼓县| 肇庆市| 金华市| 吉木萨尔县| 大兴区| 五原县| 汉中市| 松溪县| 益阳市| 策勒县| 钦州市| 隆德县| 时尚| 高淳县| 苗栗市| 察哈| 榆中县| 木里| 玛曲县| 新宾| 华宁县| 北碚区| 遂溪县| 清徐县| 汉阴县| 筠连县| 汉寿县| 汕头市| 七台河市| 拉萨市| 松溪县| 外汇| 普格县| 盖州市| 边坝县| 方正县| 泸州市| 南靖县| 江津市|