[enh] Add system backup and restore hooks