Sync is a simple file sync utility that replaces the contents of a remote directory with those of a local one using SFTP.
go build -o sync cmd/sync/main.go
Replaces contents of remote directory destination
with contents of local directory source
sync user:password@host:port destination source
For example, to replace the contents of remote directory /www
with those of local directory dist
sync user:[email protected]:22 /www dist