- 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.
推薦閱讀
- AngularJS入門與進(jìn)階
- GraphQL學(xué)習(xí)指南
- 64位匯編語言的編程藝術(shù)
- Python數(shù)據(jù)分析(第2版)
- Nexus規(guī)模化Scrum框架
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第2版)(微課版)
- Learning Salesforce Einstein
- Clojure Reactive Programming
- Getting Started with Gulp
- Microsoft Azure Storage Essentials
- Building Dynamics CRM 2015 Dashboards with Power BI
- Training Systems Using Python Statistical Modeling
- C語言程序設(shè)計(jì)實(shí)踐
- C#程序設(shè)計(jì)基礎(chǔ)入門教程
- Python應(yīng)用與實(shí)戰(zhàn)