diff --git a/app/client/api-client/types.gen.ts b/app/client/api-client/types.gen.ts index 1ead72fd..2d951cf6 100644 --- a/app/client/api-client/types.gen.ts +++ b/app/client/api-client/types.gen.ts @@ -2202,6 +2202,7 @@ export type ListBackupSchedulesResponses = { name: string; nextBackupAt: number | null; oneFileSystem: boolean; + customResticParams: Array | null; repository: { compressionMode: "auto" | "max" | "off" | null; config: @@ -2485,6 +2486,7 @@ export type CreateBackupScheduleData = { excludePatterns?: Array; includePatterns?: Array; oneFileSystem?: boolean; + customResticParams?: Array; retentionPolicy?: { keepDaily?: number; keepHourly?: number; @@ -2519,6 +2521,7 @@ export type CreateBackupScheduleResponses = { name: string; nextBackupAt: number | null; oneFileSystem: boolean; + customResticParams: Array | null; repositoryId: string; retentionPolicy: { keepDaily?: number; @@ -2584,6 +2587,7 @@ export type GetBackupScheduleResponses = { name: string; nextBackupAt: number | null; oneFileSystem: boolean; + customResticParams: Array | null; repository: { compressionMode: "auto" | "max" | "off" | null; config: @@ -2866,6 +2870,7 @@ export type UpdateBackupScheduleData = { includePatterns?: Array; name?: string; oneFileSystem?: boolean; + customResticParams?: Array; retentionPolicy?: { keepDaily?: number; keepHourly?: number; @@ -2902,6 +2907,7 @@ export type UpdateBackupScheduleResponses = { name: string; nextBackupAt: number | null; oneFileSystem: boolean; + customResticParams: Array | null; repositoryId: string; retentionPolicy: { keepDaily?: number; @@ -2947,6 +2953,7 @@ export type GetBackupScheduleForVolumeResponses = { name: string; nextBackupAt: number | null; oneFileSystem: boolean; + customResticParams: Array | null; repository: { compressionMode: "auto" | "max" | "off" | null; config: diff --git a/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx b/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx new file mode 100644 index 00000000..8859e071 --- /dev/null +++ b/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx @@ -0,0 +1,35 @@ +import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "~/client/components/ui/form"; +import { Textarea } from "~/client/components/ui/textarea"; +import type { UseFormReturn } from "react-hook-form"; +import type { InternalFormValues } from "./types"; + +type AdvancedSectionProps = { + form: UseFormReturn; +}; + +export const AdvancedSection = ({ form }: AdvancedSectionProps) => { + return ( + ( + + Custom restic parameters + +