Separate backup and restore class