Back up to Dropbox ​

Dropbox Settings uploads the database backup and the files of your site to your Dropbox account on a schedule.

INFO

Offsite backups moved out of the Frappe Framework into the offsite_backups app in version 16. Install the app to see Dropbox Settings.

TIP

On Frappe Cloud, onsite and offsite backups are created for you. See Frappe Cloud backups.

Prerequisites ​

  • The System Manager role.
  • A Dropbox account.

Create a Dropbox app ​

  1. Sign in to the Dropbox App Console, and create a new app.

  2. Select the Scoped access API and the App folder access type, and name the app.

    Choosing the Dropbox API and App folder access for a new Dropbox app

  3. In the app settings, add the redirect URI that the offsite_backups app documents for Dropbox. It has the form https://<your-site>/api/method/<method-path>.dropbox_auth_finish.

  4. Copy the App key and the App secret.

Connect Dropbox in ERPNext ​

  1. Open Dropbox Settings.
  2. Set the backup frequency, and the email address that gets backup alerts.
  3. Enter the app key and the app secret.
  4. Save.
  5. Select Allow Dropbox Access. Dropbox opens in a new tab. Allow pop-ups for your site if the tab does not open.
  6. In Dropbox, select Allow.

Check that backups work ​

Select Take Backup Now. In Dropbox, open the Apps folder, then the folder of your app. For an app named erpnext, the backups are in these folders:

text
Database files: /Apps/erpnext/database
Public files:   /Apps/erpnext/files
Private files:  /Apps/erpnext/private/files

INFO

If the compressed backup is larger than 1 GB, ERPNext uploads the latest available backup instead of creating a new one.