Last active
February 6, 2023 08:58
-
-
Save bliotti/6bd9e4455089bc2f9b807398582c1996 to your computer and use it in GitHub Desktop.
copy ssd raspibolt
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
sudo systemctl stop btcrpcexplorer | |
sudo systemctl stop bos-telegram.service | |
sudo systemctl stop rtl | |
sudo systemctl stop thunderhub | |
sudo systemctl stop electrs | |
sudo systemctl stop lnd | |
sudo systemctl stop bitcoind | |
sudo systemctl disable btcrpcexplorer.service | |
sudo systemctl disable bos-telegram.service | |
sudo systemctl disable thunderhub | |
sudo systemctl disable rtl | |
sudo systemctl disable electrs.service | |
sudo systemctl disable lnd.service | |
sudo systemctl disable bitcoind.service | |
lsblk -o UUID,NAME,FSTYPE,SIZE,LABEL,MODEL,MOUNTPOINT | |
sudo systemctl list-units --type=service --state=running | |
sudo apt update | |
sudo apt full-upgrade | |
sudo mkfs -t ext4 /dev/sdb2 | |
sudo fdisk -l | |
sudo fdisk /dev/sdb | |
lsblk -l | |
lsblk -f | |
sudo mkfs -t ext4 /dev/sdb2 | |
sudo mkdir -p /data_bak | |
sudo mount -t auto /dev/sdb2 /data_bak | |
sudo rsync -rhvPog --append-verify /data/bitcoin /data_bak/data | |
# local drive-to-drive copy with both drives mounted | |
# $ sudo rsync -rhvPog --append-verify /data/bitcoin /data_bak/data | |
# 2h 14m | |
# 72.54M bytes/sec total size is 561.55G | |
sudo systemctl enable bitcoind | |
sudo systemctl enable lnd | |
sudo systemctl enable electrs | |
sudo systemctl enable btcrpcexplorer | |
sudo systemctl enable bos-telegram.service | |
sudo systemctl enable rtl | |
sudo systemctl enable thunderhub | |
sudo systemctl start bitcoind | |
sudo systemctl start lnd | |
sudo systemctl start electrs | |
sudo systemctl start btcrpcexplorer | |
sudo systemctl start bos-telegram.service | |
sudo systemctl start rtl | |
sudo systemctl start thunderhub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment