diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-25 16:54:08 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-25 16:54:08 +0000 |
commit | eb233e728f06ec2b5cbcfc85059fa91a1150f291 (patch) | |
tree | 81cf94bd444b36f83fe489f2ae0061b0ae32fd1b /doc/manual/nix-collect-garbage.xml | |
parent | fdec72c6cc720be899431c32f99221e8c4b88cd0 (diff) |
* `--min-age' flag in nix-store and nix-collect-garbage to only delete
unreachable paths that haven't been used for N hours. For instance,
`nix-collect-garbage --min-age 168' only deletes paths that haven't
been accessed in the last week.
This is useful for instance in the build farm where many derivations
can be shared between consecutive builds, and we wouldn't want a
garbage collect to throw them all away. We could of course register
them as roots, but then we'd to unregister them at some point, which
would be a pain to manage. The `--min-age' flag gives us a sort of
MRU caching scheme.
BUG: this really shouldn't be in gc.cc since that violates
mechanism/policy separation.
Diffstat (limited to 'doc/manual/nix-collect-garbage.xml')
-rw-r--r-- | doc/manual/nix-collect-garbage.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/manual/nix-collect-garbage.xml b/doc/manual/nix-collect-garbage.xml index adc6c1e73..1de50408e 100644 --- a/doc/manual/nix-collect-garbage.xml +++ b/doc/manual/nix-collect-garbage.xml @@ -11,6 +11,7 @@ <arg choice='plain'><option>--print-live</option></arg> <arg choice='plain'><option>--print-dead</option></arg> </group> + <arg><option>--min-age</option> <replaceable>age</replaceable></arg> </cmdsynopsis> </refsynopsisdiv> @@ -56,6 +57,16 @@ </listitem> </varlistentry> + <varlistentry> + <term><option>--min-age</option> <replaceable>age</replaceable></term> + <listitem> + <para> + This option corresponds to the <option>--min-age</option> + option in <command>nix-store <option>--gc</option></command>. + </para> + </listitem> + </varlistentry> + </variablelist> </refsection> |