lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.73k stars 2.09k forks source link

chanbackup/[feature]: add archive mode for channel back ups #8906

Open Roasbeef opened 4 months ago

Roasbeef commented 4 months ago

Is your feature request related to a problem? Please describe.

To ensure that certain classes of recovery are always possible, we should considering adding a mode to never delete channel backups, and only rename or move them to a special folder that stores archived chanenls. They're relatively small (~300 bytes or so), so it shouldn't take up a significant amount of disk space.

Describe the solution you'd like

Implement the above behavior by default, adding a flag to optionally disable it.

Describe alternatives you've considered

Users can also use the various notify scripts to always grab and archive the backups themselves. This requires extra software.

Abdulkbk commented 1 month ago

Hi @Roasbeef I'm picking this up

Abdulkbk commented 3 weeks ago

Hi @Roasbeef, I opened a PR here to fix this. Please take a look and provide feedback. Thank you!