backup_manager module
- class core.backup_manager.BackupManager(backup_dir='../backup', max_backups_per_map=5)
Bases:
object
Manages creation and pruning of backup files for map data.
- Parameters:
backup_dir (str) – Directory where backups are stored.
max_backups_per_map (int) – Maximum number of backups to retain per map.
- backup_map(map_path: Path)
Creates a timestamped backup of the given map file.
- Parameters:
map_path (Path) – Path to the map file to back up.