Verified Commit 6e53822d authored by likewhoa's avatar likewhoa
Browse files

Use better path to IBD backup location

parent 1b77974f
......@@ -2941,7 +2941,7 @@ EOF
# Node Migration
#
_node_migration() {
test -d "${bitcoin_ibd_backup_dir}" || sudo mkdir -p "${bitcoin_ibd_backup_dir}"
test -d "${dojo_backup_bitcoind}" || sudo mkdir -p "${dojo_backup_bitcoind}"
# Search for umbrel and mynode bitcoind ibd data
for node in umbrel mynode casa; do
......@@ -2972,15 +2972,15 @@ _bitcoind_ibd_search() {
if [ -d "${install_dir}"/"${1}"/"${dir}" ]; then
_is_true=true
if [ ! -d "${bitcoin_ibd_backup_dir}"/"${dir}" ]; then
sudo mv "${install_dir}"/"${1}"/"${dir}" "${bitcoin_ibd_backup_dir}"/"${dir}"
if [ ! -d "${dojo_backup_bitcoind}"/"${dir}" ]; then
sudo mv "${install_dir}"/"${1}"/"${dir}" "${dojo_backup_bitcoind}"/
fi
fi
done
# Edit directory permissions
if ${_is_true}; then
sudo chown -R 1105:1108 "${bitcoin_ibd_backup_dir}"/*
sudo chown -R 1105:1108 "${dojo_backup_bitcoind}"/*
return 0
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment