Skip to content

Commit

Permalink
Limit snapshot pruning to the current host
Browse files Browse the repository at this point in the history
Address kmwoley#70 by only pruning snapshots from the current host by default when performing maintenance.  This avoids inadvertently pruning snapshots from other hosts when that might not be desired.
  • Loading branch information
living180 authored Mar 4, 2024
1 parent f759630 commit b1ff344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $AdditionalBackupParameters = @("--exclude-if-present", ".nobackup")

# maintenance configuration
$SnapshotMaintenanceEnabled = $true
$SnapshotRetentionPolicy = @("--group-by", "host,tags", "--keep-daily", "30", "--keep-weekly", "52", "--keep-monthly", "24", "--keep-yearly", "10")
$SnapshotRetentionPolicy = @("--host", $env:COMPUTERNAME, "--group-by", "tags", "--keep-daily", "30", "--keep-weekly", "52", "--keep-monthly", "24", "--keep-yearly", "10")
$SnapshotPrunePolicy = @("--max-unused", "1%")
$SnapshotMaintenanceInterval = 7
$SnapshotMaintenanceDays = 30
Expand Down

0 comments on commit b1ff344

Please sign in to comment.