63
19
Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh (and samba and nfs for that matter).
As a reference, when I edited files on Windows, I finally came over WinSCP as the exact tool I needed - WinSCP have just this feature present, with initial synch and then continuous update, using the filesystem watch service: "Keep Remote Directory up to Date".
On Linux, one could argue that sshfs could be employed to sidestep the need for synchronization entirely. On windows, a samba-share would do the same. However, I want the IDE to work with local files (on a SSD disk!), not having to go over the network to do PHP indexing and whatnots, which takes ages.
But sshfs might be a part of the solution nevertheless - so that the continuous synchronization just needed to be done between two local directories.
Any ideas or pointers?
While it's not a perfect match, you might look at overlayfs
– phs – 2016-07-12T21:10:33.280consider using the rsync tool, or sharing a folder in the webserver's document root so you could operate on the files directly under windows – Vinicius Kamakura – 2011-08-01T14:43:22.667
2rsync is "one go". I need continous updates, that is the entire point here - I edit a file, save it, and the product/system/idea I request would pick this save-action up and upload the new version immediately. NB: Both sides are Linux. NB2: I want to edit on local files, or else sshfs itself would cut it. – stolsvik – 2011-08-01T14:44:41.063
6Off-topic voters, this is a boundary case, but I think it falls fairly clearly under "tools commonly used by programmers" in the FAQ. – Karl Bielefeldt – 2011-08-01T20:44:24.613