So I used WinSCP to Keep a Remote Directory Up-to-Date

Mononofu reminded me I hadn’t talked about how to keep remote directories in sync. This is the windows version. For a Linux version, see my post on sshfs.

So, to work on files locally on Windows, but have them automatically copied to a remote directory, use WinSCP.

  1. Download WinSCP 4.17 and install it
  2. Run WinSCP
  3. Enter info to connect to the remote host (like your iphone)Session parameters
  4. On your first connect, WinSCP won’t recognize the key of the remote system, so just accept it. If you see this prompt later, it either means your remote system got a new key (e.g., reflashed the phone and re-jailbroke it), or somebody could be trying to intercept your communications. Prompt to accept remote host key
  5. Change directories to the local and remote directories you want to keep synced. Change directories
  6. Choose Commands | Keep Remote Directory up to Date (Ctrl-U). Keep Remote Directory up to Date (Ctrl-U)
  7. Choose options for synchronization, and do a full synchronization to get things started. Watch for changes
  8. Make changes to the files on your local machine. Update local files
  9. WinSCP notices the changes and pushes them to the remote machine. Updating files
  10. The directories are kept in sync. Directories synced

5 Comments »

  1. So I Found a Windows SSHFS Said,

    March 20, 2009 @ 12:12 am

    [...] beats the WinSCP periodic update model for my use cases – however, it does mean that saving files can be slow, [...]

  2. Kamil Grabowski Said,

    February 27, 2010 @ 1:57 am

    Hello,

    Do you try rsync? Rsync is faster than WinSCP (scp) – especially when you have a huge number of files.

  3. So I use rsync to keep a remote directory up to date Said,

    March 1, 2010 @ 10:57 am

    [...] an older post about WinSCP Kamil Grabowski asked if I’d used rsync to keep remote files in [...]

  4. Tomek N. Said,

    July 29, 2010 @ 1:12 pm

    What about Dropbox (https://www.dropbox.com)? I use it to keep some of my files in sync on many computers, it also has web-based client. Installation and setup are trivial.

  5. kb Said,

    December 9, 2010 @ 9:54 pm

    Dropbox is handy, too.

    Note that with dropbox, you need an account, and your files are hosted in the cloud, with the accompanying pluses (backup!) and minuses (security, account limitations).

    If you sign up with this dropbox link: dropbox.com they’ll even give us a bit more space (starts with 2GB free)

    kb

Leave a Comment