R
R
Roman Kutenko2012-08-15 13:09:06
PHP
Roman Kutenko, 2012-08-15 13:09:06

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

5 answer(s)
S
Sergey, 2012-08-15
@Ualde

Put any version control

H
holyorb2, 2012-08-15
@holyorb2

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?

S
shvedovka, 2012-08-15
@shvedovka

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.

S
script88, 2012-08-15
@script88

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.

P
Puma Thailand, 2012-08-15
@opium

Get a better second channel of the Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question