Linux
Debian/Ubuntu
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.5.3/litestream-0.5.3-linux-x86_64.deb
Then install it using dpkg:
sudo dpkg -i litestream-0.5.3-linux-x86_64.deb
You should now be able to run litestream version to verify it is installed.
RHEL/Fedora/CentOS
RPM package files are also available. First, download the latest .rpm file to
your local machine:
wget https://github.com/benbjohnson/litestream/releases/download/v0.5.3/litestream-0.5.3-linux-x86_64.rpm
Then install it using dnf (or yum on older systems):
sudo dnf install litestream-0.5.3-linux-x86_64.rpm
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