====== Using WinSCP Synchronize a Directory on a Remote Machine ====== You can configure WinSCP to monitor a directory on the local machine and keep this synchronized with a directory on a remote machine. This allows you to edit and use other tools locally, and the changes will be reflected remotely. ====== Overview ====== - Create a directory on the local system where you will work. - Create a directory on the remote system that you wish to keep synchronized with the local directory - Open WinSCP and start synchronizing folders - Edit on the local machine using the editor of your choice. - Compile on the remote machine using putty {{ :guides:patterns:winscp2setup.png?nolink|}} ===== Discussion ===== ==== Configure Synchronization ==== - In the WinSCP window, select ** Commands ** then ** Keep Remote Directory up to Date ... ** {{:guides:patterns:winscp2step1.png?nolink|}} - Select the local and remote directories to keep in synch. {{:guides:patterns:winscp2step2.png?nolink|}} - Select ** Start ** - You may be asked if you want to perform full synchronization first. Select ** Yes ** in most cases. {{:guides:patterns:winscp2step3.png?nolink|}} - Winscp should copy the files from the local directory to the remote directory - Edit local files, WinSCP will transfer these when it notices a change. {{:guides:patterns:winscp2change.png?nolink|}} - Use the putty terminal to compile and execute - When you are finished, select // Stop // in the // Keeping remote .. // window. ==== References ==== [[https://winscp.net/eng/docs/task_keep_up_to_date|WinSCP Documentation]]