DashDave Posted October 15, 2013 Report Share Posted October 15, 2013 I have been using BTSync for a few months now and would like to ask the following question. Can I use it to backup databases? We have a CRM system that uses DBF as its database, along with seperate indexes and many other files that work together. If I sync the folder that contains this application with a read only secret, the database when opened on the 2nd (sync'ed) PC is find but miles out of date. If I use a normal secret the database gets errors on both PCs even though the 2nd machine is not used at all, just a backup really. Should I be trying to use it like this? What about open file backup? Machine 1 is a Win 2003 server and Machine 2 is a Windows 2012 server (VM) both on gig lan. Dave Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 15, 2013 Report Share Posted October 15, 2013 It's important to note that Sync won't sync files that are open/in use/locked by another application, as it common with databases. Sync will only be able to Sync them once they are closed by their respective applications. Therefore, Sync is not ideal if you require databases to be constantly in-sync in "real-time". Quote Link to comment Share on other sites More sharing options...
Disappointed Cat Posted October 15, 2013 Report Share Posted October 15, 2013 Sounds like a job for SQL replication.Preferably over a secure channel like an SSH or a VPN tunnel. (It's easier to keep a VPN connection truly persistent.) Quote Link to comment Share on other sites More sharing options...
DashDave Posted October 16, 2013 Author Report Share Posted October 16, 2013 It's important to note that Sync won't sync files that are open/in use/locked by another application, as it common with databases. Sync will only be able to Sync them once they are closed by their respective applications. Therefore, Sync is not ideal if you require databases to be constantly in-sync in "real-time".I understand this and ideally would only sync the files over night if there was a way to schedule Syncing. But the file are closed every night so I would have expeced that BTSync would catch up every 24 hours, but this is not the case. If I open the database on the 2nd machine and compare recent updates, some are days or weeks behind. I suspect that this is because the files are copied "when available" by BTSync and so the indexes and subordanate files get out of step. I could do with a way to prevent copying any of the files until all of them are closed. I'll have a think... Cheers! Dave Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted October 16, 2013 Report Share Posted October 16, 2013 Well, as Lighting says, SQL Replication is probably your best bet. However, if this isn't an option, one potential "workaround" to allow Sync to run on a "Schedule" would be to setup a Scheduled Task in Windows to run BTsync.exe at a specific time each day, and then kill it again later. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.