Created
March 9, 2021 18:33
-
-
Save fanismichalakis/5d3e77601d357362b54c797638a9597b to your computer and use it in GitHub Desktop.
automatic channel.backup export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do | |
inotifywait /home/bitcoin/.lnd/data/chain/bitcoin/mainnet/channel.backup | |
rsync /home/bitcoin/.lnd/data/chain/bitcoin/mainnet/channel.backup <REMOTE_USER>@<REMOTE_HOST>:<REMOTE_DIRECTORY> | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment