473,486 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Keeping files synced between multiple computers

158 New Member
Hello Bytes,

For reference I'm running Linux Debian x86 but the problem is not related to an architecture.

I have a networked system with multiple computers (say 20-50). On each computer there is a directory that needs to be consistent with all other nodes in the system. Each computer has the privileges to make changes to the directory and those changes need to be reflected across the entire system over some amount of time.

I first tried to use timestamps in the directory to compare each computers directory to. However that caused errors because clocks were out of sync.

Does anyone have any methods either conceptual ideas or actual programs that could implement the syncing.

Thanks for any help.
Jun 17 '10 #1
5 2551
jkmyoung
2,057 Recognized Expert Top Contributor
I'm not sure at what level you're saying trying to keep the dbs synchronized.

Normally, there is a some sort of field in the db that states the change number. When anyone makes a change to the db, they lock the db, read the number and increment it, sending update messages to any listeners. Everyone keeps their own local copies of these change numbers.

Now when the listener gets the message, they know they have to update that table, or that row in the table, and update their own local change number.

If a device somehow misses the update message, the next time they want to read the db, they will notice that change number has increased, so they have to update themselves before they make any changes.

Not sure if this is what you're looking for.
Jun 18 '10 #2
kardon33
158 New Member
Yes that is close to what im looking for. Thanks

If a device somehow misses the update message, the next time they want to read the db, they will notice that change number has increased, so they have to update themselves before they make any changes.


One question though, if a device misses an update message how do they know that the number has increased when making a change?
Jun 18 '10 #3
jkmyoung
2,057 Recognized Expert Top Contributor
It depends on when you check for updates.
It might be every 5 seconds, it might be only when the data is requested for read, or when requested for write.
Jun 18 '10 #4
kardon33
158 New Member
@jkmyoung
What I meant was, does the local device compare its local database increment number to the other remote dbs. If it has a lower value it assumes it needs to update its database.
Jun 18 '10 #5
jkmyoung
2,057 Recognized Expert Top Contributor
I misunderstood; what I described was a centralized system with a main db.

Haven't done much work with a non-centralized 'cloud' system, due to the inherent complications with collisions. If there is no main db, then you need to define what happens in the following scenarios among others:

1. Trying to update a db, but cannot reach one of the other databases to lock the specific table.
2. Db gets locked, but then the request never comes in to unlock it. Is there a time-out on the lock?
Jun 21 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1538
by: aaj | last post by:
Hi all I have a group of files that I store independently in a temporary folder on the c: drive. Typical things are ini files, bitmaps, icons etc. All access to the files is hardcoded within my...
2
1269
by: hillah | last post by:
Hi, I am running a VB application from an asp page.. I mean that when pressing a button in the asp page the asp runs a vb application. The problem is that this VB Application is supposed to...
2
7617
by: Sam | last post by:
Hi All, I have a solution which consists of multiple projects and each of these projects has their own app.config file. The problem is that all of my projects in the solution pull keys from the...
8
3319
by: jonathan184 | last post by:
Hi I am trying to copyfiles and dirs keeping there permissions intact and copy to multiple destinations which are on a data.txt file on the txt file i put test1 test2 So where ami going wrong?...
1
1405
by: chikkoo | last post by:
hi please tell can I use access db files on other computers with out installing access. if can, please give me the details
4
2600
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I have a situation where I need to develop on two different computers. My solution is to simply save the project on a USB flash drive. Everything seems to work, except that the files that were...
1
6177
by: CF FAN | last post by:
Can Report Builder Export Excel Files with multiple Sheets How can I create a report that it can export in excel by multiple
2
2052
by: Radu | last post by:
Hi. I have an Access application which does lots of things by going through some PINS in some large tables. This application is installed on multiple computers, and works fine, with one exception:...
1
2478
by: lghovden06 | last post by:
I created a website for a business using Dreamweaver CS3. I upload the files using ftp in the remoted access set up in dreamweaver. When people from the business try to upload new files using...
4
1809
by: lghovden06 | last post by:
I created a website for a business using Dreamweaver CS3. I upload the files using ftp in the remoted access set up in dreamweaver. When people from the business try to upload new files using...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.