Skip to content

Build your personal knowledge base with Trilium Notes

feat(options/backup): improve automatic backups section

Elian Dorane9a0c83e8ab1
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index ada7869af3..4f411b5177 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1583,9 +1583,11 @@
"title": "Backup",
"automatic_backup": "Automatic backup",
"automatic_backup_description": "Trilium can back up the database automatically:",
- "enable_daily_backup": "Backup daily",
- "enable_weekly_backup": "Backup weekly",
- "enable_monthly_backup": "Backup monthly",
+ "automatic_backups_title": "Automatic backups",
+ "automatic_backups_description": "Trilium can back up the database automatically. It's recommended to keep the backup turned on, but this can make application startup slow with large databases and/or slow storage devices.",
+ "enable_daily_backup": "Daily backup",
+ "enable_weekly_backup": "Weekly backup",
+ "enable_monthly_backup": "Monthly backup",
"backup_recommendation": "It's recommended to keep the backup turned on, but this can make application startup slow with large databases and/or slow storage devices.",
"backup_now": "Backup now",
"backup_database_now": "Backup database now",
diff --git a/apps/client/src/widgets/type_widgets/options/backup.tsx b/apps/client/src/widgets/type_widgets/options/backup.tsx
index c7c0372bd7..4d62a9b3a0 100644
--- a/apps/client/src/widgets/type_widgets/options/backup.tsx
+++ b/apps/client/src/widgets/type_widgets/options/backup.tsx
@@ -8,7 +8,6 @@ import { formatSize } from "../../../services/utils";
import { formatDateTime } from "../../../utils/formatters";
import ActionButton from "../../react/ActionButton";
import Button from "../../react/Button";
-import FormText from "../../react/FormText";
import { useTriliumOptionBool } from "../../react/hooks";
import NoItems from "../../react/NoItems";
import OptionsRow, { OptionsRowWithToggle } from "./components/OptionsRow";
@@ -48,9 +47,10 @@ export function BackupConfiguration() {
const [monthlyBackupEnabled, setMonthlyBackupEnabled] = useTriliumOptionBool("monthlyBackupEnabled");
return (
- <OptionsSection title={t("backup.title")}>
- <FormText>{t("backup.automatic_backup_description")}</FormText>
-
+ <OptionsSection
+ title={t("backup.automatic_backups_title")}
+ description={t("backup.automatic_backups_description")}
+ >
<OptionsRowWithToggle
name="daily-backup-enabled"
label={t("backup.enable_daily_backup")}
@@ -71,8 +71,6 @@ export function BackupConfiguration() {
currentValue={monthlyBackupEnabled}
onChange={setMonthlyBackupEnabled}
/>
-
- <FormText>{t("backup.backup_recommendation")}</FormText>
</OptionsSection>
);
}