Server File Synchronization To A Linux Virtual Machine Instance On Google’s Cloud

aRoot file replication software, file synchronization software

Using EDpCloud To Synchronize Data  In Real Time To A Linux Virtual Machine Instance On Google’s Cloud.


 Houssam El Haddi (Institut National Des Statistiques et de l’Economie Appliquee(INSEA))


A. A. El Haddi (EnduraData, MN)


EDpCloud to gcloud platformIn this tutorial we will show you how to synchronize data using EDpCloud file synchronization software( to a Virtual Machine (VM) instance running Debian Linux on Google Cloud, (see more  and


This scenario is useful if you want to copy and synchronize data from many regions to a central location or to migrate data between clouds or cloud regions as well. Although this write up focuses on using a Linux Google VM instance, you can also use Microsoft Azure,  Amazon Windows or Linux instances or instances in your own private cloud(running Linux(Intel, Power7), Mac, Windows, Solaris Sparc, Solaris x86 or AIX).

With EDpCloud you can backup data to the public, private or hybrid cloud.

For a brief summary on what EDpCloud does see the video clip at the bottom of this post.


This article is for system administrators and technical staff concerned with data protection or data migration to the cloud.


For this example, we will assume that:

  • You already have a VM instance on Google cloud. Its FQN is Its IP is We will refer to this instance, interchangeably, as a remote, a destination, a target,  a data sink or a data reservoir.
  • Your server or laptop on premise is Its IP is We will refer to this as a local server, or as a source server.
  • You will install EDpCloud data synchronization software under /usr/local/enduradata on both and

And you are on the way to migrating your data or to start protecting it.

First, configure your Google cloud instance’s firewall

Allow tcp ports for EDpCloud (If you did not change the defaults, allow ports 8888 and 9000). You can change these ports in enduradata_env under the bin directory.

While at it you will need to configure ssh as well (see

Consult this resource for more information about google instances:

Copy and install EDpCloud on your instance

  • Download edpcloud x64 for Linux.
  • scp edpcloud*.gz
  • login to

Install EDpCloud data synchronization software

  • cd /tmp
  • tar xvf edpcloud*gz
  • cd /tmp/enduradata_edpcloud/
  • ./
  • Accept the license and answer a few questions (The defaults are reasonable and should work)

Add your VM’s external IP to EDpCloud’s myaliases file

myaliases is a handy configuration file that allows you to deal with a common issue of name resolution with most cloud prodviders where the external IP is not returned by ifconfig.

cd /usr/local/enduradata/edpcloud/etc

Edit /usr/local/enduradata/edpcloud/etc/myaliases.

Add the external IP’s of the instance to myaliases. One per line. Make sure that there are no  extra spaces in any entries.

vi myaliases
insert a line and add
Save and exit.

cat myaliases

Create your data synchronization configuration file /usr/local/enduradata/edpcloud/etc/eddist.cfg

Here is the content of eddist.cfg

< ?xml version=”1.0″ encoding=”UTF-8″?>
<config name=”enduradata” >
      <link name=”gcloud1″ passwd=”foox”/>
            <sender hostname=””></sender>
            <receiver hostname=”″  storepath=”/googlestore1″>  </receiver>

On (Your Google instance): mkdir /googlestore1 if it does not exist (You  may need to provision additional storage and create googlestore1 directory  first).

  • Copy eddist.cfg to /usr/local/enduradata/edpcloud/etc/eddist.cfg on both and
  • Install your EDpCloud file synchronization software license on both and copy the license to /usr/local/enduradata/edpcloud/etc/edlicense

Configure the real time file replication updates

EDpCloud comes with a real time module for Linux and Windows. The module watches one or more designated directories for changes and queues the changes for synchronization to the remote location.

Add all the directories that you want to replicate in real time to /usr/local/enduradata/edpcloud/etc/edfsmonitor.cfg

If needed you can also create a schedule to replicate and synchronize data from to the google cloud server at discrete intervals of time.

Example of a real time configuration

cat /usr/local/enduradata/edpcloud/etc/edfsmonitor.cfg

Start file synchronization software services

Restart the services on both the source ( and the cloud server destination (
. /usr/local/enduradata/edpcloud/bin/ restartall

Make sure that all works: Test using edstat on the source first.

Send a test file from the source to make sure all works:

  • touch /home/foo/testfile.txt
  • edq -l gcloud1 -n /home/foo/testfile.txt

If all is well you should see your file on

If you experience any problems, the culprits may be:

  • The firewall has blocked your EDpCloud ports
  • myaliases file is missing or incorrect
  • an error in eddist.cfg

Examine the logs under /usr/local/enduradata/edpcloud/logs

Perform initial synchronization

  • edq -l gcloud1 -n /home
    edq -l gcloud1 -n /data

After the initial synchronization is done, the real time file system monitor will synchronize any files that change under /home, /data and /var/log

Happy data migration and happy computing on the remote site as well because the data will be readable (it is not in a proprietary format).

Left as an exercise for you:

You have a few journalists in Africa, Europe, Australia. You can have all of them file their stories and send their content in real time to a Google VM. The content can be accessed by your other partners. How would you do that?  Easy!

It is free to try:

1. Go to google and create your instance
2. Go to and download a copy of the software


Server File Synchronization To A Linux Virtual Machine Instance On Google’s Cloud was last modified: April 2nd, 2018 by aRoot

Share this Post