diff --git a/README.md b/README.md index cde858e85..e0b3128f2 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/home.admin/config.scripts/dropbox.upload.sh b/home.admin/config.scripts/dropbox.upload.sh index 3ae0946ab..1e480ab02 100755 --- a/home.admin/config.scripts/dropbox.upload.sh +++ b/home.admin/config.scripts/dropbox.upload.sh @@ -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 diff --git a/pictures/dropbox-1.png b/pictures/dropbox-1.png new file mode 100644 index 000000000..38a7248b6 Binary files /dev/null and b/pictures/dropbox-1.png differ diff --git a/pictures/dropbox-2.png b/pictures/dropbox-2.png new file mode 100644 index 000000000..b8933d386 Binary files /dev/null and b/pictures/dropbox-2.png differ diff --git a/pictures/dropbox-3.png b/pictures/dropbox-3.png new file mode 100644 index 000000000..b5778e7ad Binary files /dev/null and b/pictures/dropbox-3.png differ