From 1e6ef1226b10092cf3e67ea12f6af36bf36a7f21 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:53:55 -0400 Subject: [PATCH] litestram - litestream restore script --- .gitignore | 2 ++ app/frontend/entrypoints/application.tsx | 2 +- litestream/restore.sh | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 litestream/restore.sh diff --git a/.gitignore b/.gitignore index b6267e80..7c124ff3 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,5 @@ doc/ tf/secrets.tfvars tf/.terraform* tf/plans + +litestream/config/litestream.yml \ No newline at end of file diff --git a/app/frontend/entrypoints/application.tsx b/app/frontend/entrypoints/application.tsx index bd098582..d9793443 100644 --- a/app/frontend/entrypoints/application.tsx +++ b/app/frontend/entrypoints/application.tsx @@ -1,5 +1,5 @@ import { SentryUtil } from "app/frontend/sway_utils/sentry"; -SentryUtil.init(); +SentryUtil.init(); // only fulfilled in prod import { InertiaProgress } from "@inertiajs/progress"; import { createInertiaApp } from "@inertiajs/react"; diff --git a/litestream/restore.sh b/litestream/restore.sh new file mode 100644 index 00000000..21ade8a1 --- /dev/null +++ b/litestream/restore.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +litestream restore -config litestream/config/litestream.yml ./storage/production.db \ No newline at end of file