0

I am looking for a program/script for MacOS that monitors a directory and its subdirectories for changed or new files and uploads those files to a directory on a remote server over SSH. Note that I do not want them to be synchronized. So the program does not need to scan the remote directory and local directory to check if the remote is missing any files present on my local directory. It should just wait until a file is modified, then upload that file to the server at the same exact path, relative to some working directory. So it should not do any scanning on set up.

I am a PHP developer and want to upload PHP files to a project folder on a remote server whenever I save them.

I have used NetBeans in the past and it has a great option that only uploads files when I save them. It doesn't need to do any scanning beforehand. However I have moved to a different IDE (PHPStorm) and need to find a new way to keep a remote directory updated.

I have tried the SFTP client Cyber Duck. It has a synchronize option but the "upload" option says that it will upload missing files. When I tried to use this option, it took too long to scan my local and remote directory.

There is also an option in PHPStorm to use a remote directory as the location of the source code but this also took a long time.

I feel like I could write a program that recursively scans my directory and upload new / changed files but I don't want to re-invent the wheel.

To recap and expand on my requirements. Here they are:

  • Upload files only when they are changed or are created. Ignore files that are already present before running the program.
  • the ability to exclude sub directories from being included (such as vendor libraries).
  • Cross-platform would be great but I could settle for MacOS only.
  • Syncplify.me AFT! would be such a solution, but it only supports Windows and Linux. At the time this comment is being written a MacOS version hasn't been released yet. – FjodrSo Jun 5 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.