Merge branch 'nix-copy' of git://github.com/Mic92/nix-1

This commit is contained in:
Shea Levy 2018-02-20 21:05:17 -05:00
commit a6c497f526
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -57,15 +57,15 @@ struct CmdCopy : StorePathsCommand
return {
Example{
"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 $(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"
"nix copy --to ssh://server /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"
"nix copy --from ssh://server /nix/store/a6cnl93nk1wxnq84brbbwr6hxw9gp2w9-blender-2.79-rc2"
},
};
}