Installation
Build the GoArchive binary from source and verify the installation.
GoArchive is distributed as source and builds into a single self-contained binary with no runtime dependencies.
Requirements
- Go 1.21 or later
- Network access to your MySQL servers
Build from source
git clone https://github.com/dbsmedya/goarchive.git
cd goarchive
go build -o goarchive ./cmd/goarchive
This produces a goarchive binary in the current directory.
Install system-wide
Move the binary somewhere on your PATH:
sudo mv goarchive /usr/local/bin/
Verify
goarchive version
The command prints the version and build information. If your shell reports that
the command was not found, confirm the binary is on your PATH.
Available commands
goarchive --help
| Command | Purpose |
|---|---|
archive | Copy data to the destination, then remove it from the source |
copy-only | Copy data to the destination without removing anything |
purge | Remove data from the source without copying it |
dry-run | Preview a job, including estimated row counts |
validate | Check the configuration and the environment |
plan | Display the table relationships and processing order |
list-jobs | List the jobs defined in a configuration file |
version | Show version information |
Next step
Continue to the Quick Start to build your first configuration file.
