diff --git a/app/client/components/create-repository-form.tsx b/app/client/components/create-repository-form.tsx index f9e2ab6a..d04c4adc 100644 --- a/app/client/components/create-repository-form.tsx +++ b/app/client/components/create-repository-form.tsx @@ -41,6 +41,7 @@ const defaultValuesForType = { gcs: { backend: "gcs" as const, compressionMode: "auto" as const }, azure: { backend: "azure" as const, compressionMode: "auto" as const }, rclone: { backend: "rclone" as const, compressionMode: "auto" as const }, + sftp: { backend: "sftp" as const, compressionMode: "auto" as const, port: 22 }, }; export const CreateRepositoryForm = ({ @@ -126,6 +127,7 @@ export const CreateRepositoryForm = ({ Cloudflare R2 Google Cloud Storage Azure Blob Storage + SFTP @@ -546,6 +548,81 @@ export const CreateRepositoryForm = ({ ))} + {watchedBackend === "sftp" && ( + <> + ( + + Server + + + + SFTP/SSH server hostname or IP address. + + + )} + /> + ( + + Port + + + + SSH server port (default: 22). + + + )} + /> + ( + + Username + + + + SSH account username. + + + )} + /> + ( + + Password + + + + SSH account password. + + + )} + /> + ( + + Path + + + + Remote path on the SFTP server where backups will be stored. + + + )} + /> + + )} + {mode === "update" && (