summaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2025-02-27 19:02:46 +0000
committerArun Isaac <arunisaac@systemreboot.net>2025-03-01 00:18:38 +0000
commitb0d3a38f4cbf56c5fbf02a26b129ce018312af74 (patch)
tree5114f4f80c5474ed16530a73842a31d9507b1f8c /doc/guix.texi
parent8b19b14d5c0b7c26c9d6d582b602d32b78cb1655 (diff)
deploy: Add --roll-back option.
* guix/scripts/deploy.scm (guix-deploy): Add the --roll-back option. (show-what-to-deploy): Add #:roll-back? argument. (roll-back-machine*): New function. (show-help): Document the --roll-back option. * doc/guix.texi (Invoking guix deploy): Document the --roll-back option. Change-Id: Ic5084f287aefb2d1d28380ca4ba1c6971cb913e7
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 9fd92b4891..0ca109a214 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -45249,6 +45249,14 @@ guix deploy @var{file} -x -- herd restart @var{service}
The @command{guix deploy -x} command returns zero if and only if the
command succeeded on all the machines.
+You may also wish to roll back configurations on machines to a previous
+generation. You can do that using the @option{--roll-back} or
+@option{-r} option like so:
+
+@example
+guix deploy --roll-back @var{file}
+@end example
+
@c FIXME/TODO: Separate the API doc from the CLI doc.
Below are the data types you need to know about when writing a