Skip to content

Instantly share code, notes, and snippets.

@louneskmt
Last active June 30, 2022 09:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louneskmt/e4093a62aa1ae8788ef5d92c119f22a8 to your computer and use it in GitHub Desktop.
Save louneskmt/e4093a62aa1ae8788ef5d92c119f22a8 to your computer and use it in GitHub Desktop.

Step 1: Copy over the encrypted backup file from your computer to your Umbrel.

Open the “Terminal” app on Mac/Linux, or “PowerShell” on Windows and run this:

scp <path/to/your/encrypted/backup/file> umbrel@umbrel.local:/tmp/backup.tar.gz.pgp

(Replace <path/to/your/encrypted/backup/file> with the exact path to encrypted backup file on your computer) (Exemple of file: 123456789.tar.gz.pgp)

You will be asked for a password which will be your Umbrel dashboard password, or if you haven't set one up yet, enter moneyprintergobrrr.

Step 2: Decrypt and restore the backup file

SSH into your Umbrel by running:

ssh -t umbrel@umbrel.local

You will be asked for a password which will be your Umbrel dashboard password, or if you haven't set one up yet, enter moneyprintergobrrr.

If you are running Umbrel v0.5.0 or newer

The restore script hasn't been updated yet, so the following command downloads the right version (from here https://gist.github.com/louneskmt/dd3dbc31da9d24f40b484c002373bf81) and then execute it.

curl https://gist.githubusercontent.com/louneskmt/dd3dbc31da9d24f40b484c002373bf81/raw/3273d964bb6d5e0fe0ce42a7f70133f510618eda/restore-v0-5.sh | bash -s -- /tmp/backup.tar.gz.pgp

If you are running Umbrel v0.4.10 or newer

Copy paste the following command and execute it:

~/umbrel/scripts/backup/restore /tmp/backup.tar.gz.pgp

If you are running an older version of Umbrel (< v0.4.10)

The restore script wasn't available directly in Umbrel at the time, so the following command downloads it (from here https://gist.github.com/louneskmt/3cbccd97165e06d9f65082146502dc04) and then execute it.

curl https://gist.githubusercontent.com/louneskmt/3cbccd97165e06d9f65082146502dc04/raw/babac5fdc8861b7d6d1fd2b7a7ef7b559302c2f7/restore.sh | bash -s -- /tmp/backup.tar.gz.pgp

After you run this, wait for 1 minute (if you have a lot of channels, it can take a while). You should now be able to see your channels being closed on http://umbrel.local/lightning (or http://umbrel.local:2101).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment