mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

how to make the program keep running and monitoring #50

Closed amorsu closed 3 years ago

amorsu commented 3 years ago

I have two FTP servers need to sync with each other, and I run pyftpsync on my computer as a middle point, how to keep the program running so if each FTP server have file modification, it will be sync to the other FTP server immediately. I think of a scheduled task but if it's a big file that will take some time, how will I set the timing? if there is a build-in feature for this? thanks!

mar10 commented 3 years ago

Sorry, no built-in feature for this yet. Running a shell script regularly may be a good approach. (You might also consider to ask on Stackoverflow.)