views:

135

answers:

1

I'm working on a windows platform and want to be able to auto sync my files one way 'on change' to my virtual windows or linux web server - also need to be able to filter file types. i can connect to the remote machine via network drives.

i'm ideally looking for a free, easy to set up solution - a commercial product that does what I need is called ViceVersa but its a little overkill and costs :)

Thanks Josh

+4  A: 

I'd use rsync - simple, easy to setup, and provides the filters you need. Also very low on bandwidth after the first pass.

Here is a link explaining how to get it working in Windows

Whilst rsync doesn't allow 'on-change' auto-syncing, it is very fast when it scans a sync'ed directory (even very large ones), so you could schedule a frequent sync to overcome this.

Edit: You could combine it with a program like this, to trigger an rsync on folder contents change. Cheaper than viceversa

Chaos
can't see how this detects file changes to auto sync 'on change'
Josh
I'd be very surprised to find *any* windows software that achieves this. ViceVersa, as you provided, schedules 'jobs' to run daily,weekly,etc - so doesn't handle on-change.Under linux, software built into the filesystem achieves this (e.g. inotify), that detects file changes. Now that I look, .net has an api call (http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher_members.aspx), that allows you to set these up.
Chaos
"You can run ViceVersa software on-demand, at scheduled times or continuously, while monitoring files for changes" http://www.tgrmn.com/web/file_synchronization.htm
Josh
Yeah - just looked again, missed that.
Chaos
watchdirectory looks interesting - thanks
Josh