feat: restic pass file generation

This commit is contained in:
Nicolas Meienberger
2025-10-17 13:15:24 +02:00
parent 41756e087a
commit 8af0bac63b
7 changed files with 75 additions and 1 deletions

View File

@@ -4,8 +4,11 @@ import { db } from "../../db/db";
import { volumesTable } from "../../db/schema";
import { logger } from "../../utils/logger";
import { volumeService } from "../volumes/volume.service";
import { restic } from "../../utils/restic";
export const startup = async () => {
await restic.ensurePassfile();
const volumes = await db.query.volumesTable.findMany({
where: or(
eq(volumesTable.status, "mounted"),

View File

@@ -0,0 +1 @@