Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 1.05 KB

File metadata and controls

29 lines (20 loc) · 1.05 KB

docker-db-backup

This project has moved to jdbbackup/jdbbackup-docker


A simple way to backup your mySQL database using Docker

Saving backups to Dropbox

--

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:

  1. Go to: https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=xxx
  2. Click "Allow" (you might have to log in first)
  3. 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.