2016-08-16 12:24:40 +00:00
#Setting Up Dropbox Backups
2017-03-28 10:25:13 +00:00
We always recommend customers to maintain backup of their data in ERPNext. The database backup is downloaded in the form of an SQL file. If needed, this SQL file of backup can be restored in the another ERPNext account as well.
2016-08-16 12:24:40 +00:00
You can automate database backup download of your ERPNext account into your Dropbox account.
2017-03-28 10:25:13 +00:00
To setup Dropbox Backup,
`Explore > Integrations > Dropbox Settings`
2016-08-16 12:24:40 +00:00
2018-01-18 21:38:59 +00:00
##Steps are different for ERPnext managed versions and open-source versions
###ERPnext Managed Version Instructions
2017-03-28 10:25:13 +00:00
####Step 1: Set Frequency
2016-08-16 12:24:40 +00:00
Set Frequency to download backup in your Dropbox account.
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "set frequency" src = "/docs/assets/img/setup/integrations/setup-backup-frequency.png" >
2016-08-16 12:24:40 +00:00
2017-03-28 10:25:13 +00:00
####Step 2: Allow Dropbox Access
2016-08-16 12:24:40 +00:00
2016-11-23 13:19:08 +00:00
After setting frequency and updating other details, click on `Allow Dropbox access` . On clicking this button, the Dropbox login page will open in the new tab. This might require you to allow pop-up for your ERPNext account.
2016-08-16 12:24:40 +00:00
2017-03-28 10:25:13 +00:00
####Step 3: Login to Dropbox
2016-08-16 12:24:40 +00:00
Login to your Dropbox account by entering login credentials.
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Login" src = "/docs/assets/img/setup/integrations/dropbox-2.png" >
2016-08-16 12:24:40 +00:00
2017-03-28 10:25:13 +00:00
####Step 4: Allow
2016-08-16 12:24:40 +00:00
2017-03-28 10:25:13 +00:00
On successful login, you will find a confirmation message as following. Click on "Allow" to let your ERPNext account have access to your Dropbox account.
2016-11-23 13:19:08 +00:00
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Allow" src = "/docs/assets/img/setup/integrations/dropbox-3.png" >
2016-08-16 12:24:40 +00:00
With this, a folder called "ERPNext" will be created in your Dropbox account, and database backup will start to auto-download in it.
2018-01-18 21:38:59 +00:00
##Open Source Version Instructions
####Step 1: Login to Dropbox Developer area
2016-08-16 12:24:40 +00:00
< a href = "https://www.dropbox.com/developers/apps" target = "_blank" style = "line-height: 1.42857143;" > https://www.dropbox.com/developers/apps< / a >
2018-01-18 21:38:59 +00:00
####Step 2: Create a new Dropbox app
2016-08-16 12:24:40 +00:00
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Create new" src = "/docs/assets/img/setup/integrations/dropbox-open-3.png" >
2016-08-16 12:24:40 +00:00
2018-01-18 21:38:59 +00:00
####Step 3: Fill in the details for your new app
2016-08-16 12:24:40 +00:00
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Choose Dropbox API and type as APP Folder" src = "/docs/assets/img/setup/integrations/dropbox-open-1.png" >
2016-08-16 12:24:40 +00:00
-
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Setup APP Name" src = "/docs/assets/img/setup/integrations/dropbox-open-2.png" >
2016-08-16 12:24:40 +00:00
2018-01-18 21:38:59 +00:00
####Step 4: Insert your custom domain Redirect URI
`https://{yourwebsite.com}/api/method/frappe.integrations.doctype.dropbox_settings.dropbox_settings.dropbox_auth_finish`
2017-06-20 13:30:55 +00:00
2017-07-31 11:11:35 +00:00
< img class = "screenshot" alt = "Set Redirect URL" src = "/docs/assets/img/setup/integrations/dropbox_redirect_uri.png" >
2017-06-20 13:30:55 +00:00
2018-01-18 21:38:59 +00:00
####Step 5: In a new window, open the Dropbox Settings page in your ERPnext installation
####Step 6: Set backup frequency and email
Set the frequency to download your site backups to your Dropbox account.
< img class = "screenshot" alt = "set frequency" src = "/docs/assets/img/setup/integrations/setup-backup-frequency.png" >
####Step 7: Input Keys from your Dropbox App window
2018-01-20 21:56:15 +00:00
From your Dropbox App page, enter the app key and (unhidden) app secret into the ERPnext Dropbox settings page.
2016-08-16 12:24:40 +00:00
2018-01-20 21:56:15 +00:00
Alternatively, you can enter it manually in `sites/{sitename}/site_config.json` as follows,
2016-08-16 12:24:40 +00:00
< div >
< pre >
< code > {
"db_name": "demo",
"db_password": "DZ1Idd55xJ9qvkHvUH",
"dropbox_access_key": "ACCESSKEY",
"dropbox_secret_key": "SECRECTKEY"
}
< / code >
< / pre >
< / div >
2018-01-20 21:56:15 +00:00
####Step 8: Click Save before continuing!!!
2018-01-18 21:38:59 +00:00
2018-01-20 21:56:15 +00:00
####Step 9: After saving, click "Allow Dropbox Access"
2018-01-18 21:38:59 +00:00
2018-01-20 21:56:15 +00:00
The Dropbox login page will open in the new tab. This might require you to allow pop-up for your ERPNext account.
2018-01-18 21:38:59 +00:00
####Step 11: Allow Dropbox Access
On successful login, you will find a confirmation message as following. Click on "Allow" to let your ERPNext account have access to your Dropbox account.
< img class = "screenshot" alt = "Allow" src = "/docs/assets/img/setup/integrations/dropbox-3.png" >
####Step 12: Confirm Backups Work
2016-08-16 12:24:40 +00:00
2018-01-18 21:38:59 +00:00
From the ERPnext Dropbox page, click `Take Backup Now` and then go to you Dropbox files view. You should see a new folder in Dropbox named `Apps` and inside of it your {New App} folder. Inside of it should be backup folders for both files and database.