backup: Add backup_format; add unittest.