Synching Files

Posted on 2005-04-26
Last Modified: 2008-01-09
I connect to a colocated server via terminal services. I'd like a way to setup one-button file synch from my local drive to the server (no VPN so Network Neighborhood stuff is not an option). I want to avoid a dedicated FTP client that typically includes that feature unless it really can boil stuff down to a click or two.

I have terminal services configured so the server can access my local drive via:

So perhaps the problem boils down to as simple as the DOS command that will copy only newer files (including those inside subs).

Question by:juststeve
    LVL 5

    Expert Comment

    Hi juststeve,

    If it were a unix machine, I'd say use rsync. But it's not.

    Well, I'm still going to say rsync. For info on what it is, see here:

    And for how to install a minimal version on windows, see here:


    Author Comment

    Thx ddunlea...that looks promising. I've poked around the pages a bit but so far, it's not clear if this is a 'mirroring' situation. E.G. changes on local are automatically uploaded to server. (I'm looking specifically at cwRsynch).

    Also...there's a reference:
    SET CYGWIN=nontsec
    "c:\Program Files\cwRsync\rsync" -avr /cygdrive/c/srcdir/ WINSERVER::wintest

    NB! Keep in mind that the recipe above is suitable for operations within a secure network.
    A secure network isn't a requirement, is it?
    LVL 5

    Accepted Solution

    Hi juststeve,

    I wouldn't use cdRsynch, I'd use the minimal version in the second link. The reason being, that cwRsynch sets up an rsync server which you don't need.

    If you read the man page here:

    A secure network is often implemented using a Secure Shell Tunnel, but that is when one dir is on a remote machine. Because you can access all files as if they were local, by way of terminal services, you don't need to use an rsynch server, or a SSH tunnel.

    You may need to run rynch twice though. It generally presumes that one dir is up to date and the other needs to get data from that. In order to synchronise two dirs where one may be more up to date than another for one file, but vice-versa for another, you will probably need to run something like:

    rsync -av local/ server/
    rsync -av server/ local/

    I've not actually tried this myself though, so please experiment carefully before you use this as your production system.


    Author Comment

    Just for the record/ the weeks since I asked this question, I've found the best solution was establishing a VPN connection to my server and then (since the server can be addressed as a network share) using Directory Toolkit ( for the machanics of the synch.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now