Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropbox reinsert access token #61

Closed
gajpchapo opened this issue Nov 10, 2019 · 12 comments
Closed

dropbox reinsert access token #61

gajpchapo opened this issue Nov 10, 2019 · 12 comments

Comments

@gajpchapo
Copy link

I have input the incorrect access token for dropbox, how do i change/reinstall please?

@gcgarner
Copy link
Owner

gcgarner commented Nov 10, 2019

Have a look in your home folder for a file called .dropbox ... (can't remember the exact name) you can find it by running ls -l ~/ remove that file and run the Dropbox-uploaded.sh ~/Dropbox-Uploader/dropbox_uploader.sh (not at my pc so please verify the path) and it will ask you for your api key again

@gajpchapo
Copy link
Author

there's no files in home, in home/pi theres only directories, one of which is DropboxUploader. If I browse in there's; CHANGELOG.md Dockerfile.pi dropShell.sh README.md
Dockerfile dropbox_uploader.sh LICENSE testUnit.sh
Please advise?

@gcgarner
Copy link
Owner

If there is no dot file (hidden file) called something like .dropbox something (in /home/pi/) (do an ls -al in your home directory, I forgot to add the - al to show all files) the you should just be able the run the dropbox_uploader.sh and it should ask you for your api key again

@gajpchapo
Copy link
Author

there's no .dropbox. When I re-run script is says it's already loaded

@gcgarner
Copy link
Owner

I'll send you a screenshot when I'm home

@gajpchapo
Copy link
Author

ok, thanks

@gcgarner
Copy link
Owner

make sure you are running the latest version of the project link

ls -al ~/
image

remove the old file
rm ~/.dropbox_uploader

rerun the dropbox uploader
~/Dropbox-Uploader/dropbox_uploader.sh
image

@gcgarner
Copy link
Owner

I added this to the wiki under backups

@gajpchapo
Copy link
Author

no .dropbox_uploader here
uploader

Only difference, if significant, is that I didn't work of Raspbian Lite as I need Chrome for further elements of my project?

@gcgarner
Copy link
Owner

gcgarner commented Nov 11, 2019

EDIT:
Had a better look at the script and you can run ~/Dropbox-Uploader/dropbox_uploader.sh info to view the linked account info

Then you can run ~/Dropbox-Uploader/dropbox_uploader.sh unlink to delete the API token.

Make sure you are not running it with sudo (when you run this with sudo it creates a file called /root/.dropbox_uploader and that is where your api key is stored)

in the past installer called Dropbox-Uploader with sudo but that has been removed so please ensure you have updated you project to the latest version and if you are using a cron job to run the backup do not run it with sudo

@gajpchapo
Copy link
Author

Hi Graham,

I ran ~/Dropbox-Uploader/dropbox_uploader.sh info and it picked off where I needed it to, asking for the API. I inserted and it saved. Seems okay now.

Will now write a cron job and see how we go.

Thanks for your help.

@gcgarner
Copy link
Owner

not a problem, I learned how to better use Dropbox-Uploader in the process

I've update the wiki based on this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants