ERPNext Conference 2019* ERPNext.com Blog

How Synchronize Local and Cloud instances


#1

Is there a software that can make synchronization between the two servers located at different places but there database status will always be the same. Or what is the best suggested solution?


#2

Not, sure

but you can restore the cloud instance site backup to your local instance.

Check bench backup to take backup and bench restore to restore the backup to site.

Thanks, Makarand


#3

No, I am asking about different thing.
I want to synchronize theme if one of instances get offline and users do some oprations in offline mode then when internet connction get back it will synchronize the database.

Is it possible to make slave database locally just for emergence ?


#4

any ideia on this facing the same situation


#5

Hi, sorry for disturbing, have you found the solution?


#6

Probably rsync is one command you should investigate https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

Search ‘rsync’ on this forum will give you ideas too


#7

thank you for your tip, I`ll check:)


#8

@NMyshuk you could try this :

and share your feedback please :wink:


#9

hi, thank you, I’ll check and share :wink:


#10

Hi, did anyone try and run this script given by @Mohammed_Redha. Also if it works c an someone please guide me on how implement this to sync my ec2 erpnext instance and my offline instance. Thanks!