4 Replies - 652 Views - Last Post: 24 August 2010 - 11:58 AM

#1 Fratyr   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 139
  • Joined: 10-April 08

File Synchronization Software/Solution

Posted 24 August 2010 - 01:52 AM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: File Synchronization Software/Solution

#2 dorknexus   User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1272
  • View blog
  • Posts: 4,625
  • Joined: 02-May 04

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.

This post has been edited by Dark_Nexus: 24 August 2010 - 09:39 AM

Was This Post Helpful? 0
  • +
  • -

#3 Fratyr   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 139
  • Joined: 10-April 08

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? :D
Was This Post Helpful? 0
  • +
  • -

#4 dorknexus   User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1272
  • View blog
  • Posts: 4,625
  • Joined: 02-May 04

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.
Was This Post Helpful? 0
  • +
  • -

#5 moopet   User is offline

  • binary decision maker
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,190
  • Joined: 02-April 09

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...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1