forked from raspibolt/raspibolt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bitcoin & LND data migration: added -og flag to rsync command + LND c…
…hown command (raspibolt#935) * Changed rsync flag to rhvPog + LND chown * Fixed typo recursive chown
- Loading branch information
1 parent
357c49e
commit fb50712
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ Copy it to a USB thumbdrive, so that you can restore it later. | |
* Copy the whole LND data directory to the thumbdrive | ||
|
||
```sh | ||
$ sudo rsync -rhvP --append-verify /mnt/ext/lnd /mnt/thumbdrive/ | ||
$ sudo rsync -rhvPog --append-verify /mnt/ext/lnd /mnt/thumbdrive/ | ||
``` | ||
|
||
* Also make sure to create a Static Channel Backup file and copy it to the thumbdrive | ||
|
@@ -86,7 +86,8 @@ Once you set up your new RaspiBolt 3, restore your old LND node setup. | |
$ sudo mkdir /mnt/thumbdrive | ||
$ lsblk -pli | ||
$ sudo mount /dev/sdb1 /mnt/thumbdrive/ | ||
$ sudo rsync -rhvP --append-verify /mnt/thumbdrive/lnd /data | ||
$ sudo rsync -rhvPog --append-verify /mnt/thumbdrive/lnd /data | ||
$ sudo chown -R lnd:lnd /data/lnd | ||
``` | ||
|
||
### Backup & Restore Bitcoin data | ||
|
@@ -101,13 +102,13 @@ When **Reusing the old drive** for your new node, you must first copy the data t | |
* Example for network copy | ||
|
||
```sh | ||
$ rsync -rhvP --append-verify [email protected]:/mnt/ext/bitcoin /your-local-directory | ||
$ rsync -rhvPog --append-verify [email protected]:/mnt/ext/bitcoin /your-local-directory | ||
``` | ||
|
||
* Example for local drive-to-drive copy with both drives mounted | ||
|
||
```sh | ||
$ rsync -rhvP --append-verify /mnt/old-raspibolt-drive/bitcoin /mnt/raspibolt-v3-drive/data | ||
$ rsync -rhvPog --append-verify /mnt/old-raspibolt-drive/bitcoin /mnt/raspibolt-v3-drive/data | ||
``` | ||
|
||
--- | ||
|