FG

Linux: Continuously synchronize files, one way

Fresh3 days ago
Mar 15, 202684343 views
Confidence Score1%
1%

Problem

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?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Linux: Continuously synchronize files, one way

Low Risk

You can also use from the inotify-tools package.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment