- Seed empty database files # REQUIRED
./create-empty-db-files.sh
- Bring up only the API to create initital DB and generate a key
docker compose up api -d
- Generate said key
docker compose exec -it api shlink api-key:generate
- Start litestream to begin first backup
docker compose up litestream -d
- Go to https://app.shlink.io/, type in the API details to test the API works and to write to the DB
Test that restore works before anything else
docker compose down -v
rm ./database/*
docker compose up litestream -d
docker compose up api web -d
shlink-sqlite-lightstream-backup