Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement channel backups and restore #29

Open
nolim1t opened this issue May 4, 2019 · 10 comments
Open

Implement channel backups and restore #29

nolim1t opened this issue May 4, 2019 · 10 comments
Assignees
Labels
documentation Documentation Issues enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@nolim1t
Copy link
Member

nolim1t commented May 4, 2019

Implement a function called:

noma lnd backup
noma lnd restore

Maybe in future to be considered (to the cloud)

noma lnd autobackup
@nolim1t nolim1t added the enhancement New feature or request label May 4, 2019
@AnotherDroog
Copy link
Member

I’ve got a “cloud” in the works so we don’t have to worry about that here.

Backup and restore functions: +1

@nolim1t
Copy link
Member Author

nolim1t commented May 25, 2019

I have a proposal to include into the "autobackup" function. Also I'll be using the toml library too as invoicer uses the same config format.

Working proof of concept
https://gitlab.com/lncm/pi-factory/snippets/1860150

@AnotherDroog
Copy link
Member

Taking a look

@AnotherDroog AnotherDroog self-assigned this Aug 18, 2019
@AnotherDroog AnotherDroog added documentation Documentation Issues help wanted Extra attention is needed question Further information is requested labels Aug 18, 2019
@AnotherDroog
Copy link
Member

AnotherDroog commented Aug 24, 2019

👍 Your proof of concept is good relying on inotify.

While merging it would be nice to add scp over ssh.

@AnotherDroog
Copy link
Member

@meeDamian
Copy link
Member

Also see @meeDamian 's gist.github.com/meeDamian/36831e6d433031363dd2bf8561764a10

Note that this is very different. It's intended to be run from an external device, there's zero trigger logic, as it relies on either scheduling it externally, or running it manually.

BTW: Has anyone tried to restore lnd from zeed + static backup file?

@AnotherDroog
Copy link
Member

I also like how Arvinda is using asymmetric keys here https://github.com/vindard/lnd-backup

@nolim1t
Copy link
Member Author

nolim1t commented Aug 27, 2019

Looks cool but I don't think you need to really encrypt it as it complicates the restore process, and the static backup is directly tied to the node

@AnotherDroog
Copy link
Member

That’s what I thought. The relevant files are only useful with the wallet passphrase

It would be nice to have certainty on this.

@AnotherDroog
Copy link
Member

I've checked the lnd code, channel.backup is indeed encrypted with the seed's passphrase.

We can close this once #54 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation Issues enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants