diff --git a/doc/manual/nixops.xml b/doc/manual/nixops.xml index 510f805e6..367ef49ba 100644 --- a/doc/manual/nixops.xml +++ b/doc/manual/nixops.xml @@ -1315,6 +1315,88 @@ $ nixops ssh-for-each -p reboot +Command <option>nixops scp</option> + +Synopsis + + + nixops scp + + + + + + + + machine + + + sourcepath + + + destpath + + + + + +Description + +This command copies files to or from a specified machine in the deployment + + + +Options + + + / + + Choose whether to copy to or from the remote + machine. + + + machine + + The name of the machine in the deployment to copy + to/from. + + + sourcepath + + The path to the source file on the machine the file is being + copied from. This path may be on the local or remote machine depending on the + direction of the copy. + + + + destpath + + The path to the destination on the machine the file is being + copied to. This path may be on the local or remote machine depending on the + direction of the copy. + + + + + +Examples + +To copy the file app.sqlite to the app server: + + +$ nixops scp --to app app.sqlite /var/app/app.sqlite + + + +To retrieve a log file from the web server: + + +$ nixops scp --from web /var/app/logs.txt weblogs.txt + + + + + Command <option>nixops mount</option> diff --git a/doc/manual/overview.xml b/doc/manual/overview.xml index 0775a5ad8..93d8b37ec 100644 --- a/doc/manual/overview.xml +++ b/doc/manual/overview.xml @@ -47,6 +47,12 @@ backend2...> /dev/xvdb 153899044 192084 145889336 1% /tmp By default, the command is executed sequentially on each machine. You can add the flag to execute it in parallel. +You can copy extra files to and from individual machines using +nixops scp --to machine +sourcefile +destfile and the corresponding +--from command. +