mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-27 10:25:40 +00:00
fix(webui): clarify retention policy descriptions
This commit is contained in:
@@ -591,19 +591,19 @@ const ForgetOperationDetails = ({
|
||||
} else if (policy.policy.case == "policyTimeBucketed") {
|
||||
const val = policy.policy.value;
|
||||
if (val.hourly) {
|
||||
policyDesc.push(`Keep hourly for ${val.hourly} hours`);
|
||||
policyDesc.push(`Keep ${val.hourly} hourly snapshots`);
|
||||
}
|
||||
if (val.daily) {
|
||||
policyDesc.push(`Keep daily for ${val.daily} days`);
|
||||
policyDesc.push(`Keep ${val.daily} daily snapshots`);
|
||||
}
|
||||
if (val.weekly) {
|
||||
policyDesc.push(`Keep weekly for ${val.weekly} weeks`);
|
||||
policyDesc.push(`Keep ${val.weekly} weekly snapshots`);
|
||||
}
|
||||
if (val.monthly) {
|
||||
policyDesc.push(`Keep monthly for ${val.monthly} months`);
|
||||
policyDesc.push(`Keep ${val.monthly} monthly snapshots`);
|
||||
}
|
||||
if (val.yearly) {
|
||||
policyDesc.push(`Keep yearly for ${val.yearly} years`);
|
||||
policyDesc.push(`Keep ${val.yearly} yearly snapshots`);
|
||||
}
|
||||
if (val.keepLastN) {
|
||||
policyDesc.push(
|
||||
|
||||
@@ -773,7 +773,7 @@ const RetentionPolicyView = () => {
|
||||
</Tooltip>
|
||||
</Radio.Button>
|
||||
<Radio.Button value={"policyTimeBucketed"}>
|
||||
<Tooltip title="Snapshots older than the specified time period will be dropped by restic. Retention policy is applied to drop older snapshots after each backup run.">
|
||||
<Tooltip title="The last N snapshots for each time period will be kept by restic. Retention policy is applied to drop older snapshots after each backup run.">
|
||||
By Time Period
|
||||
</Tooltip>
|
||||
</Radio.Button>
|
||||
|
||||
Reference in New Issue
Block a user