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

Remove lnd2 backup #9

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions compose/backup/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ mkdir -p /backup1/lnd/data/chain/bitcoin/${NETWORK:?}
mkdir -p /backup2/lnd/data/chain/bitcoin/${NETWORK:?}
mkdir -p /backup3/lnd/data/chain/bitcoin/${NETWORK:?}

mkdir -p /backup1/lnd2
mkdir -p /backup2/lnd2
mkdir -p /backup3/lnd2

mkdir -p /backup1/lnd2/data/chain/bitcoin/${NETWORK:?}
mkdir -p /backup2/lnd2/data/chain/bitcoin/${NETWORK:?}
mkdir -p /backup3/lnd2/data/chain/bitcoin/${NETWORK:?}

mkdir -p /backup1/bitcoin
mkdir -p /backup2/bitcoin
mkdir -p /backup3/bitcoin
Expand All @@ -44,11 +36,6 @@ do
rsync -auzhPq /running/lnd/data/chain/bitcoin/${NETWORK:?}/channel.backup /backup2/lnd/data/chain/bitcoin/${NETWORK:?}/channel.backup
rsync -auzhPq /running/lnd/data/chain/bitcoin/${NETWORK:?}/channel.backup /backup3/lnd/data/chain/bitcoin/${NETWORK:?}/channel.backup


rsync -auzhPq /running/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup /backup1/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup
rsync -auzhPq /running/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup /backup2/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup
rsync -auzhPq /running/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup /backup3/lnd2/data/chain/bitcoin/${NETWORK:?}/channel.backup

sleep 5
done

Expand All @@ -57,10 +44,6 @@ rsync -auzhPq /running/lnd/lnd.conf /backup1/lnd/lnd.conf
rsync -auzhPq /running/lnd/lnd.conf /backup2/lnd/lnd.conf
rsync -auzhPq /running/lnd/lnd.conf /backup3/lnd/lnd.conf

rsync -auzhPq /running/lnd2/lnd.conf /backup1/lnd2/lnd.conf
rsync -auzhPq /running/lnd2/lnd.conf /backup2/lnd2/lnd.conf
rsync -auzhPq /running/lnd2/lnd.conf /backup3/lnd2/lnd.conf

rsync -auzhPq /running/bitcoin/bitcoin.conf /backup1/bitcoin/bitcoin.conf
rsync -auzhPq /running/bitcoin/bitcoin.conf /backup2/bitcoin/bitcoin.conf
rsync -auzhPq /running/bitcoin/bitcoin.conf /backup3/bitcoin/bitcoin.conf
Expand Down