Knowledgebase

Question About Servers

How to Back up ERPNExt to Google Drive Print

  • 0

This article outlines how you can integrate your ERPNext installation with Google Drive to be able to back up your ERPNext data to Google Drive. You first need to authorize ERPNext to upload files to Google Drive. 

Step 1: Create a new project on Google Cloud Platform and generate new OAuth 2.0 credentials.

Step 2: Enable API Access in API Library for Google Drive by searching for and enabling "Drive API". 

Step 3: In "API & Services" > "Credentials" create a new Credential and select "Create OAuth client ID".

Step 4: Select Application Type "Web Application"

Step 5: Add https://{yoursite} to Authorized JavaScript origins.

Step 6: Add https://{yoursite}?cmd=frappe.integrations.doctype.google_drive.google_drive.google_callback as an authorized redirect URI.

Step 7: Add your Client ID and Client Secret in the Google Settings in "Home" > "Integrations" > "Google Services" > "Google Settings".

Step 8: In the Google Drive list, click on "New" to create a new folder where your ERPNext backups will be saved. Enter desired folder name, the backup frequency, and the email of the person to whom backup notifications will be sent, then save it.

Step 9: Now click on "Authorize Drive Access" to authorize ERPNext to push files to Google Drive. Once Authorized, you can save your backup to Google Drive.

Step 10: To backup data to Google Drive from within ERPNext, click on "Take Backup". The backup process will run in the background and you will be notified regarding the backup status.

It is worth noting that if the compressed backup size exceeds 1GB (Gigabyte), the system will upload the latest available backup to Google Drive instead of generating a new backup file. Congratulations! You have successfully integrated ERPNext with Google Drive to back up your organization's data.

See Soladrive's managed ERPNext service plans here 


Was this answer helpful?

« Back

Enterprise-Grade Hardware

  • Samsung
  • Juniper
  • Western Digital
  • Supermicro
  • LSI
  • Intel
  • R1Soft Backups
  • cPanel
  • MySQL
  • Parallels
  • HP Partner