1

It is written in the documentation for core-lightning:

Copy the contents of the $LIGHTNINGDIR to the BTRFS mount point.

Copy the entire directory, then chown -R the copy to the user who will run the lightningd.

If you are paranoid, run diff -r on both copies to check.

lightningd.sqlite3 and emergency.recover are binary files, as evidenced by file --mime-encoding. Is cmp a better tool than diff for checking integrity of channel backups? Isn't diff preferred for text files and cmp for binary files?

1 Answer 1

1

If you only want to know whether or not two binary files have identical contents, diff will do the job

See How to compare binary files to check if they are the same?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.