- WildFly Cookbook
- Luigi Fugaro
- 123字
- 2021-07-16 13:38:17
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.
推薦閱讀
- 大學計算機基礎(第三版)
- Microsoft Dynamics GP 2013 Reporting, Second Edition
- Mastering Unity 2D Game Development(Second Edition)
- Python機器學習算法: 原理、實現與案例
- Unity 2018 Shaders and Effects Cookbook
- Programming with CodeIgniterMVC
- Learning Modular Java Programming
- Node.js 12實戰
- 零基礎學Python編程(少兒趣味版)
- Distributed Computing in Java 9
- Java并發編程:核心方法與框架
- Mastering Concurrency in Python
- Mastering Leap Motion
- TypeScript全棧開發
- Python數據預處理技術與實踐