#1457 fix dropbox script & updated documentation (#1735)

This commit is contained in:
geco91 2020-10-30 19:05:18 +01:00 committed by rootzoll
parent 43cd6fc61e
commit 17a75e84b3
5 changed files with 10 additions and 16 deletions

View File

@ -975,29 +975,29 @@ If you want to get one step further in securing your funds against total fall-ou
#### A) DropBox Backup Target
Activate the StaticChannelBackup to DropBox in the `SERVICES` menu of your RaspiBlitz. It will ask you for the Dropbox-Authtoken. This is how you can get this token:
Activate the StaticChannelBackup to DropBox in the `SETTINGS` menu of your RaspiBlitz. It will ask you for the Dropbox-Authtoken. This is how you can get this token:
Go to your web browser, do the following:
1. Go to https://www.dropbox.com/developers/apps/create and sign in.
1. Choose **Dropbox Api**.
1. Choose **Create App**.
![Dropbox API 1](https://raw.githubusercontent.com/vindard/lnd-backup/master/images/dropbox-1.png)
![Dropbox API 1](https://github.com/rootzoll/raspiblitz/raw/v1.6/pictures/dropbox-1.png)
1. Choose **App Folder**.
Choose the 'Scoped Access' & 'App Folder' and set a unique name - for example `LNDbackup` with a random number behind it. Agree to Terms of Service and click 'Create App'.
![Dropbox API 2](https://raw.githubusercontent.com/vindard/lnd-backup/master/images/dropbox-2.png)
1. Set **Permissions**.
1. Name your app and click **Create App** to proceed.
![Dropbox API 2](https://github.com/rootzoll/raspiblitz/raw/v1.6/pictures/dropbox-2.png)
![Dropbox API 3](https://raw.githubusercontent.com/vindard/lnd-backup/master/images/dropbox-3.png)
Its important first to select the `Permissions` tab and activate the `files.content.write` permission. Dont forget to `Submit` the change before continue.
1. On the settings page for your new app, scroll down to **OAuth 2** and click **Generate**.
1. Generate **OAUth2 Token**.
![Dropbox API 4](https://raw.githubusercontent.com/vindard/lnd-backup/master/images/dropbox-4.png)
![Dropbox API 3](https://github.com/rootzoll/raspiblitz/raw/v1.6/pictures/dropbox-3.png)
1. You will now see a string of letters and numbers appear. This is your **Dropbox-Authtoken**.
Now go back to the 'Settings' tab and under 'OAuth2' click the 'Generate' button. You will now see a long string of letters and numbers appear. This is your **Dropbox-Authtoken**. Make sure to copy the complete token string .. there might be more if you scroll to the right in the token field.
To test it, try opening or closing a channel, and then check if you can find a copy of `channel.backup` in your Dropbox. You can check the background-script logs to see details on errors: `sudo journalctl -f -u background`

View File

@ -34,12 +34,6 @@ https://github.com/rootzoll/raspiblitz/#a-dropbox-backup-target" 11 70 2>/home/a
shred -u /home/admin/.tmp
fi
# quick check on authtoken
if [ ${#authtoken} -gt 80 ]; then
echo "err='authtoken unvalid'"
exit
fi
# set in config - that acivates the dropbox back in background process
if [ ${#authtoken} -gt 0 ]; then
if [ ${#dropboxBackupTarget} -eq 0 ]; then

BIN
pictures/dropbox-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
pictures/dropbox-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
pictures/dropbox-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB