Litestream
  • Twitter
  • GitHub
  • Install
  • Guides
  • Reference
  • GitHub
  • Slack

Install

  • macOS
  • Linux (Debian)
  • Build from Source

General

  • Getting Started
  • Tips & Caveats
  • How it works
  • Alternatives

Infrastructure Guides

  • Running in a Docker container
  • Running in a Kubernetes cluster
  • Running as a Systemd service
  • Running as a Windows Service

Replica Guides

  • Replicating to Amazon S3
  • Replicating to Azure Blob Storage
  • Replicating to Backblaze B2
  • Replicating to DigitalOcean Spaces
  • Replicating to Scaleway Object Storage
  • Replicating to Google Cloud Storage
  • Replicating to Linode Object Storage
  • Replicating to an SFTP Server

Reference

  • Configuration File
  • Command: databases
  • Command: generations
  • Command: replicate
  • Command: restore
  • Command: snapshots
  • Command: version
  • Command: wal

On this page

  • Installation

Build from Source

Installation#

Most users should follow the steps above to install prebuilt binaries but you can also install from source if a binary is not provided for your operating system or architecture. First, install the Go toolchain.

Next, download the source code and run the following command:

go install ./cmd/litestream

This will install litestream into your $GOPATH/bin directory.

← Linux (Debian)