Have you ever wondered how you can sync directories using CLI over SFTP like the normal rsync command in linux. Luckily, there is a tool out there that allows you to do just that (and a lot more actually).

You can use csync to sync 2 directories/files over SFTP.

Syntax:

 

You can get the documentation here.