2016-08-16 12:24:40 +00:00
#Setting Up Dropbox Backups
We always recommend customers to maintain backup of their data in ERPNext. he 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.
You can automate database backup download of your ERPNext account into your Dropbox account.
2016-11-23 13:19:08 +00:00
####Step 1: Create Dropbox service
2016-08-16 12:24:40 +00:00
2016-11-23 13:19:08 +00:00
`Explore > Setup > Integration Service`
Make a new Integration Service and select `Dropbox` as a service from dropdown then save the document.
2016-08-16 12:24:40 +00:00
####Step 2: Activate
2016-11-23 13:19:08 +00:00
After saving a document, click on `Dropbox Settings` button, to setup service.
< img class = "screenshot" alt = "create dropbox service" src = "{{docs_base_url}}/assets/img/setup/integration-service/create_service.png" >
2016-08-16 12:24:40 +00:00
####Step 3: Set Frequency
Set Frequency to download backup in your Dropbox account.
2016-11-23 13:19:08 +00:00
< img class = "screenshot" alt = "set frequency" src = "{{docs_base_url}}/assets/img/setup/integration-service/setup-backup-frequency.png" >
2016-08-16 12:24:40 +00:00
####Step 4: Allow Dropbox Access
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
####Step 5: Login to Dropbox
Login to your Dropbox account by entering login credentials.
2016-11-23 13:19:08 +00:00
< img class = "screenshot" alt = "Login" src = "{{docs_base_url}}/assets/img/setup/integration-service/dropbox-2.png" >
2016-08-16 12:24:40 +00:00
####Step 6: Allow
On successfull 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
< img class = "screenshot" alt = "Allow" src = "{{docs_base_url}}/assets/img/setup/integration-service/dropbox-3.png" >
####Step 7: Enable Service
After generating access token, go back to Dropbox Integration Service record and check `enable` . This will enable backup auto-download.
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.
##Open Source Users
####Step 1: Go to
< a href = "https://www.dropbox.com/developers/apps" target = "_blank" style = "line-height: 1.42857143;" > https://www.dropbox.com/developers/apps< / a >
####Step 2:Create a new app
2016-11-23 13:19:08 +00:00
< img class = "screenshot" alt = "Create new" src = "{{docs_base_url}}/assets/img/setup/integration-service/dropbox-open-3.png" >
2016-08-16 12:24:40 +00:00
####Step 3: Fill in details for the app
2016-11-23 13:19:08 +00:00
< img class = "screenshot" alt = "Create new" src = "{{docs_base_url}}/assets/img/setup/integration-service/dropbox-open-1.png" >
2016-08-16 12:24:40 +00:00
-
2016-11-23 13:19:08 +00:00
< img class = "screenshot" alt = "Create new" src = "{{docs_base_url}}/assets/img/setup/integration-service/dropbox-open-2.png" >
2016-08-16 12:24:40 +00:00
####Step 4: Settings in Site Config
2016-11-23 13:19:08 +00:00
After the app is created, note the app key and app secret on Dropbox Settings page or enter 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 >
####Step 5: Complete Backup
Setup dropbox backups from the backup manager as shown in previous section.