Site server data replication
Data replication from sites is set as a scheduled task on the Central server. You can change the time and period of its run on the Task Scheduler settings tab.
In case you want to run the task outside of the schedule, you can do so on the Sites main tab.
The replication consists of two stages: at the first stage, the data are downloaded from the site server to a folder on the Central server, and at the second stage, they are uploaded to the Central server's database. Only data that are already uploaded to the database are included in the reports on the Central server.
On the Sites main tab, you can check the current state of replications for all site servers:
The Status column gives you the following information:
Ready
Unknown, http 404
Error; this can be an http 5xx or http 200 with body '0' error
Unreachable, a timeout. As an admin you can set the timeout and the period in the config.ini.
The Last downloaded data column displays date and time of the last successful download of the site server data.
The Download Status column shows either OK or a red (error) icon.
The Last successfully replicated data column shows if any error happened during the replication. The displayed date and time represent the last record replicated before the error.
The Replication status shows you any of three colored icons:
OK - all the downloaded data were successfully replicated.
Pending - there are downloaded data waiting to be replicated.
Error - replication was not finished due to errors (not warnings!).
To manually run a replication of a site servers' data:
Open the Sites main tab (MyQ, Sites).
On the Sites main tab, select a Site, click Actions on the toolbar, and then click Replicate data.
Scheduled run of data replication from sites
By default, the data replication from sites is set to run once per day.
To change the Data replication from sites schedule, open the Task Scheduler settings tab (MyQ, Settings, Task Scheduler), and then double click the Data replication from sites schedule to open its properties panel, where it can be set. For more information, see Task Scheduler.
The statistical data on Site servers are stored for the period of time that is set on the System Management settings tab of the site server MyQ Web Interface, under History. To maintain the data, make sure that the time intervals between replications are shorter than these periods. Furthermore, the time periods for storing the data on Site servers should be long enough to avoid losing data, in case the scheduled replication is delayed, for example due to lost connection between the Central server and a Site server.