support both backup and restore in frontpage