automatic migration

Pierre Neidhardt 18c6739ae0 Move to GitHub 7 年之前
testdata 9baed1398a Remove spurious file in testdata 9 年之前
LICENSE 2c7344b758 Lint rest of the code, set version at compile time 8 年之前
README.md 18c6739ae0 Move to GitHub 7 年之前
doc.go 18c6739ae0 Move to GitHub 7 年之前
hsync.go 2c7344b758 Lint rest of the code, set version at compile time 8 年之前
hsync_test.go 5ba0d77121 Lint most of the code: comments, logic, error checking 8 年之前

README.md

hsync - a filesystem hierarchy synchronizer

hsync SOURCE TARGET renames files in TARGET so that identical files found in SOURCE and TARGET have the same relative path.

The main goal of the program is to make folders synchronization faster by sparing big file transfers when a simple rename suffices. It complements other synchronization programs that lack this capability.

See http://ambrevar.bitbucket.io/hsync and hsync -h'for more details.

Installation

Set up a Go environment (see https://golang.org/doc/install) and run:

$ go get github.com/ambrevar/hsync

The version number is set at compilation time. To package a specific version, checkout the corresponding tag and set version from the build command, e.g.:

go build -ldflags "-X main.version=$(git describe --tags --always)"

Usage

See hsync -h.

License

See LICENSE.