Unfortunately, Windows Server Backup does not have a built-in feature to manage retention policies directly. This means that it will overwrite previous backups if the storage space is limited or if the backup schedule is set to overwrite existing backups.
However, you can manage retention by using a combination of scripts and scheduled tasks. Here are some steps you can follow to set up a 14-day retention policy:
- Create a Backup Script: Write a PowerShell script to perform the backup and save it with a timestamp in the filename. This will prevent the backups from overwriting each other.
- Create a Cleanup Script: Write another PowerShell script to delete backups older than 14 days. This script will scan the backup directory and remove files that exceed the retention period.
- Schedule the Scripts: Use Task Scheduler to run the backup script daily and the cleanup script periodically (e.g., once a week).