summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrédéric Simonis <simonisfrederic@gmail.com>2021-03-24 21:55:15 +0100
committerGitHub <noreply@github.com>2021-03-24 20:55:15 +0000
commit38841ad74672b8e4dc6045f7477b36bd6d10993e (patch)
tree7ebae4c1014eb1e63cb693a0144ad8f1f8fa6c1d /lib
parent8c3d929d23bf8d562282ca7dfdcb1e44bc6ff5d2 (diff)
downloadspack-38841ad74672b8e4dc6045f7477b36bd6d10993e.tar.gz
spack-38841ad74672b8e4dc6045f7477b36bd6d10993e.tar.bz2
spack-38841ad74672b8e4dc6045f7477b36bd6d10993e.tar.xz
spack-38841ad74672b8e4dc6045f7477b36bd6d10993e.zip
Add doc for mirror of env (#22525)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/mirrors.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/spack/docs/mirrors.rst b/lib/spack/docs/mirrors.rst
index 8ed8c375a9..83d4fd9512 100644
--- a/lib/spack/docs/mirrors.rst
+++ b/lib/spack/docs/mirrors.rst
@@ -159,6 +159,27 @@ can supply a file with specs in it, one per line:
This is useful if there is a specific suite of software managed by
your site.
+^^^^^^^^^^^^^^^^^^
+Mirror environment
+^^^^^^^^^^^^^^^^^^
+
+To create a mirror of all packages required by a concerte environment, activate the environment and call ``spack mirror create -a``.
+This is especially useful to create a mirror of an environment concretized on another machine.
+
+.. code-block:: console
+
+ [remote] $ spack env create myenv
+ [remote] $ spack env activate myenv
+ [remote] $ spack add ...
+ [remote] $ spack concretize
+
+ $ sftp remote:/spack/var/environment/myenv/spack.lock
+ $ spack env create myenv spack.lock
+ $ spack env activate myenv
+ $ spack mirror create -a
+
+
+
.. _cmd-spack-mirror-add:
--------------------