Backup LND SCB to S3 on change

closes #359
This commit is contained in:
2021-12-23 13:06:32 +01:00
parent 56f58f3a1b
commit 31f4a547a9
3 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -xe -o pipefail
while true; do
inotifywait <%= @lnd_dir %>/data/chain/bitcoin/<%= @bitcoin_network %>/channel.backup
aws s3 cp <%= @lnd_dir %>/data/chain/bitcoin/<%= @bitcoin_network %>/channel.backup "s3://<%= @s3_bucket %>/<%= @s3_scb_dir %>/channel.backup"
done