Skip to content

Commit

Permalink
Bitcoin & LND data migration: added -og flag to rsync command + LND c…
Browse files Browse the repository at this point in the history
…hown command (raspibolt#935)

* Changed rsync flag to rhvPog + LND chown

* Fixed typo recursive chown
  • Loading branch information
VajraOfIndra authored Feb 24, 2022
1 parent 357c49e commit fb50712
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
```

---
Expand Down

0 comments on commit fb50712

Please sign in to comment.