diff options
Diffstat (limited to 'tools/unitctl/README.md')
-rw-r--r-- | tools/unitctl/README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/unitctl/README.md b/tools/unitctl/README.md index dca16e63..74366007 100644 --- a/tools/unitctl/README.md +++ b/tools/unitctl/README.md @@ -177,6 +177,20 @@ Imported /opt/unit/config/put.json -> /config Imported 3 files ``` +### Export configuration from a running Unit instance +``` +$ unitctl export -f config.tar +``` + +Addtionally, standard out can be used: +``` +$ unitctl export -f - +$ unitctl export -f - | tar xf - config.json +$ unitctl export -f - > config.tar +``` + +*Note:* The exported configuration omits certificates. + ### Wait for socket to become available ``` $ unitctl --wait-timeout-seconds=3 --wait-max-tries=4 import /opt/unit/config` |