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

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.

主站蜘蛛池模板: 兴海县| 晋城| 柯坪县| 隆安县| 南充市| 油尖旺区| 东城区| 怀来县| 出国| 都兰县| 左贡县| 宣汉县| 巩义市| 新建县| 南平市| 华亭县| 浦江县| 大厂| 鹤山市| 临汾市| 黄梅县| 黎平县| 凤城市| 马边| 吴川市| 白河县| 黎川县| 疏附县| 景宁| 农安县| 潞城市| 蚌埠市| 太康县| 三穗县| 浦北县| 福贡县| 临湘市| 紫金县| 安岳县| 峨眉山市| 和硕县|