# Use btc blockchain on ubuntu from umbrel

**URL:** <https://community.umbrel.com/t/use-btc-blockchain-on-ubuntu-from-umbrel/13695>\
**Category:** Bitcoin and Lightning\
**Created:** [September 18, 2023, 2:36am UTC](https://community.umbrel.com/t/use-btc-blockchain-on-ubuntu-from-umbrel/13695 "2023-09-18T02:36:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smolgrrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/smolgrrr/32/2825_2.png) [@smolgrrr](https://community.umbrel.com/u/smolgrrr)\
**Post date:** [September 18, 2023, 2:51pm UTC](https://community.umbrel.com/t/use-btc-blockchain-on-ubuntu-from-umbrel/13695/2 "2023-09-18T14:51:22Z")

</div>

Here’s a great guide! Please let me know if you have any questions or require any assistance

> [@Official Umbrel Troubleshooting Guide and FAQ](https://community.umbrel.com/t/official-umbrel-troubleshooting-guide-and-faq/9873/1):
>
> **How to Synchronize a New Bitcoin Node from an Existing One**
> 
> Advanced users can take advantage of the following methods to synchronize a new node with an existing one. Please be cautious as these methods are not natively supported in Umbrel.
> 
> _Method 1: Transferring Blockchain Data_
> 
> The steps below are for copying data from an existing Linux machine to a new Raspberry Pi, but the steps are similar for other combinations of devices.
> 
> 1. Flash UmbrelOS to a microSD card and boot the Raspberry Pi with your SSD attached.
> 2. Complete the Umbrel setup process. Your SSD will now be formatted for Umbrel use.
> 3. Go to the settings page and shut down Umbrel.
> 4. Remove the SSD and attach it to a Linux machine with the full blockchain.
> 5. Copy the blocks and chainstate directories on the Linux machine to `~/umbrel/app-data/bitcoin/data/bitcoin` directory on the SSD.
> 6. Remove the SSD from your Linux machine, plug it back into your Raspberry Pi, and power it back on.
> 
> _Method 2: Direct Synchronization_
> 
> This method allows you to sync your new node from another running Bitcoin node on the same network or trusted connection, without the need to copy data to a different device.
> 
> 1. Connect to your Umbrel device by following the instructions in _How to SSH into umbrelOS on Umbrel Home or Rasberry Pi_ or by accessing a terminal on your Linux machine.
> 2. Run the following command\*. If you are on a Linux machine, you may need to replace `~/umbrel` with the path to your installation directory, as described in _Troubleshooting on Linux_:`sudo ~/umbrel/scripts/app compose bitcoin exec bitcoind bitcoin-cli addnode "192.168.x.x:8333" "onetry"`\*Replace “192.168.x.x” with the IP of the existing running node.
> 
> Once your new node is fully synced, you can safely remove the IP from peers and go back to a normal connection. For more information, see [https://chainquery.com/bitcoin-cli/addnode](https://chainquery.com/bitcoin-cli/addnode).

---

_[View the full topic](https://community.umbrel.com/t/use-btc-blockchain-on-ubuntu-from-umbrel/13695)._
