Skip to content
Snippets Groups Projects
Commit a2740c9c authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

nix copy: Add examples

parent 88e6bb76
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,17 @@ struct CmdCopy : StorePathsCommand ...@@ -39,9 +39,17 @@ struct CmdCopy : StorePathsCommand
{ {
return { return {
Example{ Example{
"To copy Firefox to the local store to a binary cache in file:///tmp/cache:", "To copy Firefox from the local store to a binary cache in file:///tmp/cache:",
"nix copy --to file:///tmp/cache -r $(type -p firefox)" "nix copy --to file:///tmp/cache -r $(type -p firefox)"
}, },
Example{
"To copy the entire current NixOS system closure to another machine via SSH:",
"nix copy --to ssh://server -r /run/current-system"
},
Example{
"To copy a closure from another machine via SSH:",
"nix copy --from ssh://server -r /nix/store/a6cnl93nk1wxnq84brbbwr6hxw9gp2w9-blender-2.79-rc2"
},
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment