This project has moved to jdbbackup/jdbbackup-docker
A simple way to backup your mySQL database using Docker
--
You should get a Dropbox token using the following command:
docker run -ti --entrypoint="java" fathzer/db-backup -cp ./jdbbackup.jar com.fathzer.jdbbackup.dropbox.DropBoxManager
This commands will display the following message:
- Go to: https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=xxx
- Click "Allow" (you might have to log in first)
- Enter the authorization code there:
Open the url provided in first line with your favorite browser, authorize jdbbackup to access your Dropbox account. Then type in the authorization code you've just got on Dropbox site and press return it will display:
Please wait ... Your token is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Keep it in a secure place as it allows to access to your backup folder on Dropbox
Copy the token, you'll have to reuse it in jdbbackup configuration file.