Skip to content

Latest commit

History

History
17 lines (15 loc) 路 498 Bytes

README.md

File metadata and controls

17 lines (15 loc) 路 498 Bytes

Sync

Sync is a simple file sync utility that replaces the contents of a remote directory with those of a local one using SFTP.

Build

go build -o sync cmd/sync/main.go

Usage

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:password@example.com:22 /www dist