- 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.
推薦閱讀
- Flask Web全棧開發實戰
- iOS Game Programming Cookbook
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- Mastering Concurrency in Go
- C和C++安全編碼(原書第2版)
- OpenCV for Secret Agents
- Django:Web Development with Python
- Android 7編程入門經典:使用Android Studio 2(第4版)
- QGIS:Becoming a GIS Power User
- Instant PHP Web Scraping
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- Python 3.7從入門到精通(視頻教學版)
- 汽車人機交互界面整合設計
- Machine Learning for Developers
- Python Digital Forensics Cookbook