D
D
djbob20002020-02-13 23:16:57
Data synchronization
djbob2000, 2020-02-13 23:16:57

How to synchronize a folder in windows 10 with web hosting?

There is a computer on windows 10. On it, the Sound Empire program periodically (every 5 seconds) overwrites the file with the name of the song inside (the file name is the same, the content changes). He is also writing a second file with the next 10 songs.
The site is hosted on wordpress, where the php script from the txt file displays the name of the song on the site itself, and the future playlist from the second txt file.
I ran into a problem with how to upload files when changing the contents of files:
i.e. the program monitors whether the files have changed, if so, uploads them to the server.
I looked all over the Internet, I found only 2 ways:
1. RealSync- through ssh, what you need, launched it, for the first time everything worked on a test machine. On a working computer does not work for the life of me. So I could not overcome, the author does not answer. Too bad, it's the perfect way for me.
2. GoodSync is a heavy monster, 500 MB in RAM, writes a bunch of extra logs to disk, sometimes loads the processor heavily, set it up via SFTP, it works fine, but I don’t want to keep a monster for the sake of such a trifle.

Can someone advise a simpler solution, maybe a script of some kind?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Bomberow, 2020-02-14
@majstar_Zubr

It is possible through cygwin + bash as here
There is also winscp https://winscp.net/eng/docs/scripting

S
severnik, 2020-05-08
@severnik

WinSCP can synchronize directories, see /synchronize
Also, in Win10 you can enable the Linux subsystem, and there you can do whatever you like, starting with rsync synchronization and up to mounting the desired hosting directory via sftp to the place where Sound Empire puts its text files with names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question