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

3 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 [...]

Leave a Comment