Rule-based assignment backup and restore