I have two Ubuntu cloud servers (no GUI), two Ubuntu laptops (with GUI), and one Windows desktop. When I write web code, I like to have the code (in the www folder) synced on all my devices so that when I change the HTML file on my laptop, it automatically gets changed on the server (and on the other laptop). I know this is a horrible practice because it would allow me to mess up my web page(s), but I don't care because it's more convenient than SFTP-ing into my server each time I change a page. I also don't like having to commit and sync every little change when updating my personal code.
Is there any file sync software that can sync (the www folder) on all my servers/clients?
I want something that DOES NOT require me to install a GUI on my cloud servers.
My ideal file sync software would run on the Ubuntu terminal like so:
$: filesync /var/www -username -password
$: filesync /var/www MyCloudServer.net -password
where "MyCloudServer.net" acts as a synchronization/relay server.
Is there any software like that? And if not, is there any way to make it so that my laptop automatically SFTP's any changed HTML files in my /var/www folder to my server in real time without me having to click anything?