Linux (Debian)
Download & install
Debian package files are provided so you can install Litestream and its systemd
service with a few commands. First, download the latest .deb
file to your
local machine:
wget https://github.com/benbjohnson/litestream/releases/download/v0.3.13/litestream-v0.3.13-linux-amd64.deb
Then install it using dpkg
:
sudo dpkg -i litestream-v0.3.13-linux-amd64.deb
You should now be able to run litestream version
to verify it is installed.
Installing as a service
To run Litestream continuously as a background service, you’ll need to enable and start the service:
sudo systemctl enable litestream
sudo systemctl start litestream
You can verify the service is running by checking the systemd journal:
sudo journalctl -u litestream -f
If you make changes to Litestream configuration file, you’ll need to restart the service:
sudo systemctl restart litestream