You are not logged in.
I'm running Arch Linux on a machine and Windows Vista on another and there are a bunch of files that I would like to keep in sync in both of them. Both have their own copy of the files...
If I do a change in a file/folder on Arch (renaming, moving, deleting, modifying, etc...) I need that change to be reflected on the Vista machine. As far as I can tell, I would need to have some software on both machines to keep them in sync and I'm starting with Arch.
Is there anything I could use to, when a file/folder modification is detected, to immediately and automatically reflect that change on a network folder?
I'll worry with the Vista bit after this first "phase" on Arch.
Much like Dropbox but on a network level and without any centralized file repository. I've been trying Dropbox but it doesn't quiet work as I expected, doing the changes on Dropbox's server and then reflect them on the second machine takes more time than to do it directly to a folder through the network.
Well, we could not even see this as network, I just need a folder's modifications in it's files/folders to be automatically reflected on a different folder, it could even be in the same machine. I just need that type of action immediately and automatically.
Is there anything for this?
Last edited by Nazgulled (2009-04-17 21:55:13)
Offline
Have a look into rsync which should be able to do what you're looking for, assuming you can mount Vista's hard drive on your Linux machine, or you want to run Cygwin to get rsync on Vista.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I've looked at rsync in the past but I don't see how can I use it to update the files, as soon as change is made to a specific folder, without any user interaction...
Offline
You can't get rsync to update instantaneously, but you could add it to your cron to run every minute.
Last edited by Tenken (2009-04-18 19:00:27)
Offline
If you're considering rsync then you should also look at unison, it's multi platform and easily replicates both ways: http://www.cis.upenn.edu/~bcpierce/unison/
You need to install an RTFM interface.
Offline
You can't get rsync to update instantaneously, but you could add it to your cron to run every minute.
That's unacceptable for what I need, I need it to be updated as soon as I press the "save" button.
Are both these machines always on the network? If so I would recommend setting up a nfs share.
Never heard of nfs shares... Just took a quick look at the wiki and I guess I need a server on one machine and a client on the other. I would prefer to have the server on Vista, what would I need for that? And for the Arch client, just reading the wiki would probably be enough?
Offline
I think he means he wants some redundancy rather than a central point (an NFS share or Samba share), but still keep something accessible from both machines. rsync, again, every minute would do this, however connection between both machines would have to be maintained. rsync will keep two folders in sync (and won't update files that already exist, but rsync is very flexible in that you can change exactly how it does things) but you'd, as has been said, have to run every minute in order for it to keep the folders in sync.
Nothing else is coming to mind. If it's a form of reduncancy you're after, I might suggest setting an el cheapo box up with a pair of disks of desired size, and use software RAID to create a RAID1 array. Or, you can do what I did and get an HP proliant with a SmartArray card in and hardware RAID1 the drives together. If that's tickled your fancy though, eBuyer have some ProLiant ML115's and ML110's that can do hard RAID with SATA drives that they're selling cheap. Not the cheapest they've been but the servers fluctuate in price so regularly you never know when you'll see it so low again.
Oh, also, a nightly sync has it's advantages too. If ever you delete a file and you have a nightly sync you can just get the file back off the nightly, but if you've got hundreds and hundreds of GB's worth of data, that might be getting toward costly, especially if you do what I do and keep the last 5 days worth of data across 5 1.5Tb Seagate Freeagent drives.
Last edited by PinkFloydYoshi (2009-04-19 01:59:50)
Offline
Not what I'm looking for, but thanks.
Offline
Offline
I've tested in the past, it didn't work as I expected...
Nevermind, I'm sick of this, I'm just going to use VirtualBox's shared folders. It also doesn't work as I expected but it works better than any other solution I tried...
Offline
I really appreciate your help but forget about it. At least for the time being.
I honestly don't have any more time to waste with this, I'm way behind schedule with my projects as it is...
Offline
In that case : for other readers
RAID 1 through the network : http://www.linux.com/feature/137516
Offline