Answer the question
In order to leave comments, you need to log in
How to synchronize a local site and an exact copy on the Internet?
Good afternoon, now I am developing a system for automating some processes for an enterprise. Faced the following problem. Periodically, the Internet disappears in the office, and the project under development takes over the main functionality of the work. For example, billing, a simple 1C will not be enough due to the specifics of the separation of accounts. So I thought to start a local (combat) version of the service on an office computer. Duplicate the functionality on the corporate website. This is due to the specification of the work, sometimes remote access to accounts is needed. So how to synchronize the work of two services as a whole? PHP project
Answer the question
In order to leave comments, you need to log in
few details.
If we take a "horse in a vacuum" then there is no problem.
See the latest IDs on both sites and write a message to the admin:
There are 3 new entries on the local site, import?
There are database synchronization tools, for example, for MySQL dev.mysql.com/doc/refman/5.0/en/replication.html
Making changes to the code can be controlled using version control systems, excuse me.
In the file uploaded to the site (local copy), if there is one, then wget.
Use csync2, it will help you out, here are some advantages:
Quick access to application files through the use of local storage.
High speed.
Low resource consumption (CPU, disk operations). These two factors allow you to run the synchronization process as often as possible, so the data on the servers becomes identical almost in "real time".
Ease of setup for data exchange between any number of servers.
Possibility to synchronize file deletion.
Secure communication between hosts (SSL).
It is often used on Hight-Load projects.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question