2022-01-17 18:45:21 +00:00
|
|
|
R""(
|
|
|
|
|
|
|
|
# Examples
|
|
|
|
|
2022-01-18 16:35:41 +00:00
|
|
|
* To copy the build log of the `hello` package from
|
|
|
|
https://cache.nixos.org to the local store:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix store copy-log --from https://cache.nixos.org --eval-store auto nixpkgs#hello
|
|
|
|
```
|
|
|
|
|
|
|
|
You can verify that the log is available locally:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix log --substituters '' nixpkgs#hello
|
|
|
|
```
|
|
|
|
|
|
|
|
(The flag `--substituters ''` avoids querying
|
|
|
|
`https://cache.nixos.org` for the log.)
|
|
|
|
|
2022-12-20 14:37:40 +00:00
|
|
|
* To copy the log for a specific [store derivation] via SSH:
|
|
|
|
|
|
|
|
[store derivation]: ../../glossary.md#gloss-store-derivation
|
2022-01-18 16:35:41 +00:00
|
|
|
|
|
|
|
```console
|
|
|
|
# nix store copy-log --to ssh-ng://machine /nix/store/ilgm50plpmcgjhcp33z6n4qbnpqfhxym-glibc-2.33-59.drv
|
|
|
|
```
|
2022-01-17 18:45:21 +00:00
|
|
|
|
|
|
|
# Description
|
|
|
|
|
|
|
|
`nix store copy-log` copies build logs between two Nix stores. The
|
|
|
|
source store is specified using `--from` and the destination using
|
|
|
|
`--to`. If one of these is omitted, it defaults to the local store.
|
|
|
|
|
|
|
|
)""
|