Hello.
I need an advice, if anyone of you have an experience in this.
I have my working PC (Zend Studio + Mapped Network Drive)
The files I work on is stored on a local machine, to speed up the process of interaction and SVN routine (so It won't do triangle actions, but a direct connects only). Now, to test the files on the server (Mapped Network Drive), I use some Sync program, that monitors my work directory and when I change any file there, It syncs with mapped network drive and updates it accordingly if anything was changed.
That's bad. With a big project that I have 4,000 files+, every sync takes up to 10 seconds, which means - impossible to work as web developer.
Anyone knows better solution or sync program? Remember - I could work directly on network drive, but I won't. It will make a triangle connections when using SVN+network drive+local machine with zend.
File Synchronization Software/Solution
Page 1 of 14 Replies - 652 Views - Last Post: 24 August 2010 - 11:58 AM
Replies To: File Synchronization Software/Solution
#2
Re: File Synchronization Software/Solution
Posted 24 August 2010 - 09:38 AM
Just run an rsync on the file tree before you actually need it. no need to keep it updated as you make changes right?
I use rsync to keep my user tree up to date on my backup drive and it takes like 5 seconds to bring my ~40 gig tree in sync with the backup.
I use rsync to keep my user tree up to date on my backup drive and it takes like 5 seconds to bring my ~40 gig tree in sync with the backup.
This post has been edited by Dark_Nexus: 24 August 2010 - 09:39 AM
#3
Re: File Synchronization Software/Solution
Posted 24 August 2010 - 11:33 AM
Im fine with the manual update through rsync, but the rest of my team won't accept it. they used to click "ctrl+s", "alt+tab", "f5" and you see the changes in the browser, so I prefer solutions with auto sync on change ;-)
Or maybe I can trigger rsync by clicking ctrl+s?
Or maybe I can trigger rsync by clicking ctrl+s?
#4
Re: File Synchronization Software/Solution
Posted 24 August 2010 - 11:44 AM
You could write a very simple script that uses the kernel's inotify to monitor for changes and then rsyncs when it detects the changes? Languages like Python and Ruby have wrappers for the API so I would guess it should be pretty trivial and quick to create.
#5
Re: File Synchronization Software/Solution
Posted 24 August 2010 - 11:58 AM
I'd say that regardless of syncing things, if you need to repeatedly rework files because they're failing to work correctly on the server compared to locally, then your local environment is not close enough to the server environment
If you want to brute-force the issue, replicate the server in a VM, run it on your local machine and map its file system to your local one, thereby being able to test with NO sync whatsoever. Good idea? Bad idea? Depends on your actual setup I guess...
Page 1 of 1

New Topic/Question
This topic is locked



MultiQuote



|