---
title: Litestream 0.5.x updates
url: https://calvin.my/posts/litestream-0-5-x-updates
published: 2025-12-25
updated: 2026-09-16
category: Operations
tags:
- sqlite
- Database
- litestream
summary: This post outlines setting up Litestream 0.5.x to continuously replicate SQLite databases. It covers installing the release appropriate to the host architecture, enabling the service, and configuring database replicas for local storage or Amazon S3 with a chosen synchronization interval. Readers can verify backups through stored snapshots and restore a database by reinstalling Litestream, supplying valid S3 credentials with required permissions, and running the restore process.
---

# Litestream 0.5.x updates

For Litestream v0.3.x, refer to the&nbsp;[previous article.](../posts/backup-sqlite-databases-with-litestream)

* * *

## Install Litestream

1. Check the latest release on [GitHub](https://github.com/benbjohnson/litestream/releases).

2. Pick and install the one that matches your machine architecture.

   ```bash
   $ wget https://github.com/benbjohnson/litestream/releases/download/v0.5.5/litestream-0.5.5-linux-arm64.deb
   $ sudo dpkg -i litestream-0.5.5-linux-arm64.deb
   ```

3. Enable and start the service.

   ```bash
   $ sudo systemctl enable litestream
   $ sudo systemctl start litestream
   ```

4. Check service status.

   ```bash
   $ sudo systemctl status litestream
   ```

* * *

## Configure Litestream

1. Locate the configuration file

   ```bash
   $ sudo pico /etc/litestream.yml
   ```

2. Configure local or S3 replicas based on your needs. Refer to the [official guide](https://litestream.io/guides/) for more.

   ```yaml
   access-key-id: AKIAxxxx
   secret-access-key: xxxxxx/xxxxxx
   region: xxxx
   sync-interval: 180s

   dbs:
     - path: /path/to/database
       replica:
         url: s3://xxx/yyy
   ```

3. Save and restart the service.

   ```bash
   $ sudo systemctl restart litestream
   ```

* * *

## Check Backups

1. Snapshots are available in your S3 bucket.

   ![](https://camy-pub.s3.ap-southeast-1.amazonaws.com/7a94ebae-0cb3-4cd9-ae65-4a39d145ae4e.png)

* * *

## Restore database

1. Install Litestream and copy the config file that contains the AWS S3 credentials.

2. If you lost the original S3 credentials, you can create a new one from the AWS console. Remember to give the necessary S3 permissions.

3. To restore, run the following command.

   ```bash
   $ litestream restore -o /path/to/restored_database /path/to/database
   ```
