feature request: non destructive prune switch #10217

issue pscTheOne openend this issue on April 15, 2017
  1. pscTheOne commented at 10:23 pm on April 15, 2017: none
    -prune option deletes blockchain files irreversibly. A switch (like -prune-keep-files for renaming the files instead of deleting would enable someone with a fully downloaded blockchain to create a trusted pruned node to copy onto other computers and thereafter revert to a full blockchain without first having to backup .bitcoin/blocks
  2. pscTheOne renamed this:
    non destructive prune switch
    feature request: non destructive prune switch
    on Apr 15, 2017
  3. laanwj commented at 7:46 am on April 17, 2017: member
    There is a fastcopy_chainstate script here that helps with doing that conveniently: https://gist.github.com/laanwj/3c4614a23e072cbb3d39090da1834a68 I use this for testing pruning. It uses hard links to quickly make a “copy” of the chain state + utxo set. The files that are not changed by bitcoind are linked, the rest is copied. Files not necessary for this (such as the wallet, debug log, etc) are not copied. This copy of the data directory can be pruned at will, then copied, or simply deleted without adverse effect on the original datadir.
  4. jonasschnelli added the label Block storage on Apr 19, 2017
  5. MarcoFalke closed this on Apr 26, 2020

  6. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me