"use client" import { FormError } from "@/components/forms/error" import { Button } from "@/components/ui/button" import { Card } from "@/components/ui/card" import { Download } from "lucide-react" import Link from "next/link" import { useActionState } from "react" import { restoreBackupAction } from "./actions" export default function BackupSettingsPage() { const [restoreState, restoreBackup, restorePending] = useActionState(restoreBackupAction, null) return (

Download backup

The archive consists of all uploaded files and the SQLite database. You can view the contents of the database using any SQLite viewer.

How to restore from a backup

This feature doesn't work automatically yet. Use your docker deployment with backup archive to manually put database.sqlite and uploaded files into the paths specified in DATABASE_URL and UPLOAD_PATH
{/*
*/} {restoreState?.error && {restoreState.error}}
) }