Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: update terminology from "Snapshots" to "Backups" in Plan settings for clarity

towfiqi3dab5fa0a492
diff --git a/backend/src/managers/SecurityKeyManager.ts b/backend/src/managers/SecurityKeyManager.ts
index 2b85962..8790434 100644
--- a/backend/src/managers/SecurityKeyManager.ts
+++ b/backend/src/managers/SecurityKeyManager.ts
@@ -28,7 +28,7 @@ class SecurityKeyManager {
public async setupInitialKeys(): Promise<void> {
const keysPath = path.join(appPaths.getDataDir(), 'keys.json');
-
+
// 1. Check if keys already exist (Optimization)
try {
const existingContent = JSON.parse(await fs.readFile(keysPath, 'utf-8'));
@@ -67,12 +67,12 @@ class SecurityKeyManager {
const finalContent = {
...currentFileContent,
- ...newKeyData
+ ...newKeyData,
};
await fs.writeFile(keysPath, JSON.stringify(finalContent, null, 2), { mode: 0o600 });
console.log(`[SecurityKeyManager] Cryptographic keys securely stored at ${keysPath}`);
-
+
// Update local state
this.keyData = finalContent as KeyData; // Cast or update interface
} catch (error) {
diff --git a/frontend/src/components/Plan/PlanForm/PlanForm.tsx b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
index 9ec9e1f..2f7c40e 100644
--- a/frontend/src/components/Plan/PlanForm/PlanForm.tsx
+++ b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
@@ -226,7 +226,7 @@ const PlanForm = ({ title, planSettings, type, onPlanSettingsChange, onSubmit, i
<div className={classes.field} style={{ width: '150px' }}>
<NumberInput
- label="Snapshots to Keep"
+ label="Backups to Keep"
fieldValue={planSettings.settings.prune.snapCount}
onUpdate={(val) =>
onPlanSettingsChange({
@@ -237,7 +237,7 @@ const PlanForm = ({ title, planSettings, type, onPlanSettingsChange, onSubmit, i
placeholder="5"
min={1}
inline={false}
- hint="Number of Active Restorable Snapshots to Keep"
+ hint="Number of Active Restorable Backups/Snapshots to Keep regardless of the Removal Policy"
/>
</div>
<PlanPruneSettings
diff --git a/frontend/src/components/Plan/PlanSettings/PlanAdvancedSettings.tsx b/frontend/src/components/Plan/PlanSettings/PlanAdvancedSettings.tsx
index 50fd6fd..4c88d99 100644
--- a/frontend/src/components/Plan/PlanSettings/PlanAdvancedSettings.tsx
+++ b/frontend/src/components/Plan/PlanSettings/PlanAdvancedSettings.tsx
@@ -41,7 +41,7 @@ const PlanAdvancedSettings = ({ plan, appSettings, device, onUpdate }: PlanAdvan
customClasses={classes.advancedSettingsSelect}
options={[
{ label: 'General', value: 'General', icon: 'folders' },
- { label: 'Prune', value: 'Prune', icon: 'prune' },
+ // { label: 'Prune', value: 'Prune', icon: 'prune' },
{ label: 'Performance', value: 'Performance', icon: 'performance' },
{ label: 'Notification', value: 'Notification', icon: 'notification' },
{ label: 'Misc.', value: 'Misc', icon: 'settings-alt' },
diff --git a/frontend/src/components/Plan/PlanSettings/PlanPruneSettings.tsx b/frontend/src/components/Plan/PlanSettings/PlanPruneSettings.tsx
index d02b69d..c54567e 100644
--- a/frontend/src/components/Plan/PlanSettings/PlanPruneSettings.tsx
+++ b/frontend/src/components/Plan/PlanSettings/PlanPruneSettings.tsx
@@ -16,7 +16,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
return (
<>
<div className={classes.field}>
- <label className={classes.label}>Snapshot Removal Policy</label>
+ <label className={classes.label}>Backup Retention Policy</label>
<Select
options={[
{ label: 'Remove by Age', value: 'forgetByAge' },
@@ -29,7 +29,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
</div>
{pruneSettings.policy === 'forgetByAge' && (
<div className={classes.field}>
- <label className={classes.label}>Remove Snapshots Older Than</label>
+ <label className={classes.label}>Remove Backups Older Than</label>
<div className={classes.forgetByAgeField}>
<NumberInput
fieldValue={pruneSettings.forgetAge ? parseInt(pruneSettings.forgetAge.replace(/\D/g, ''), 10) : 3}
@@ -62,7 +62,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
)}
{pruneSettings.policy === 'forgetByDate' && (
<div className={classes.field} style={{ width: '200px' }}>
- <label className={classes.label}>Remove Snapshots Older Than</label>
+ <label className={classes.label}>Remove Backups Older Than</label>
<Input type="date" fieldValue={pruneSettings.forgetDate || ''} onUpdate={(val) => onUpdate({ ...pruneSettings, forgetDate: val })} />
</div>
)}
@@ -71,7 +71,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
<div className={classes.field}>
<label className={classes.label}>Custom Policy Settings</label>
<div className={classes.customPolicyOption}>
- <span>Keep Daily Snapshots for </span>
+ <span>Keep Daily Backups for </span>
<NumberInput
fieldValue={pruneSettings.keepDailySnaps || ''}
onUpdate={(val) => onUpdate({ ...pruneSettings, keepDailySnaps: val })}
@@ -79,7 +79,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
<span>Days</span>
</div>
<div className={classes.customPolicyOption}>
- <span>Keep Weekly Snapshots for </span>
+ <span>Keep Weekly Backups for </span>
<NumberInput
fieldValue={pruneSettings.keepWeeklySnaps || ''}
onUpdate={(val) => onUpdate({ ...pruneSettings, keepWeeklySnaps: val })}
@@ -87,7 +87,7 @@ const PlanPruneSettings = ({ plan, onUpdate }: PlanPruneSettingsProps) => {
<span>Days</span>
</div>
<div className={classes.customPolicyOption}>
- <span>Keep Monthly Snapshots for </span>
+ <span>Keep Monthly Backups for </span>
<NumberInput
fieldValue={pruneSettings.keepMonthlySnaps || ''}
onUpdate={(val) => onUpdate({ ...pruneSettings, keepMonthlySnaps: val })}