Google Drive Synchronization with ERP – Manickam S

Connecting Jasper soft to PostgreSQL Data Resource – Vel Murugan M
April 7, 2018
Geo Coding Map API’s and Limitations – Athiban Raj T
April 7, 2018

Google Drive Synchronization with ERP – Manickam S

Introduction

G-Drive Synchronisation enables a user to upload local files automatically to the cloud servers. I would like to tell you just what you need to set this up. First make an environment to upload files to the server by linking your Google account or any other cloud account (for other cloud providers).

This configuration enables the user to sync local files to the cloud storage automatically. This guide handles a few open source tools to configure your local directory to synchronise it with cloud storage.

What is R Clone

R clone is a command line program to sync files and directories to and from Cloud.

It Supports:
  • Google Drive
  • Amazon S3
  • Openstack Swift / Rackspace cloud files / Memset Memstore
  • Dropbox
  • Google Cloud Storage
  • The local file system Features
Features of Rclone
  • Timestamps preserved on files
  • Copy mode to just copy new/changed files
  • Sync mode follows the same directory hierarchy as your computer
  • Check mode to check all MD5SUMs
  • Can sync to and from network, for example: two different Drive accounts
Prerequisites for configuration
  • A Gmail Account which is open to sync with drive
  • Root Permission to Install and Configure Rclone
  • During configuration, use a proper new remote name and make sure you are using that same name to sync cloud storage
After Configuration

After Configuration, Goto /home/user/ and execute the below command as root

ls -l -a .rclone.conf

You can get a result similer to the bellow

-rwx------ 1 root root 300 Sep 4 17:25 .rclone.conf

Now, set the global permission for this file as a root user.

chmod 777 .rclone.conf

Install postfix into your Linux for crontab support

sudo apt-get install postfix

Install R clone

Refer here to install Rclone

Configure Rclone

Refer here to configure Rclone

Crontab

Crontab is a linux based Scheduler tool which helps to execute a command as per the mentioned time duration.

Crontab Configuration

To sync your files to cloud storage, rclone sync command has to be executed frequently.

Refer more about Crontab Here.

G-Drive Synchronization enables a user to upload local files automatically to the cloud servers. I would like to tell you just what you need to set this up. First make an environment to upload files to the server by linking your Google account or any other cloud account (for other cloud providers).

Leave a Reply

Your email address will not be published. Required fields are marked *