Converts a BackupHeader into a byte buffer format, which can be stored in the beginning of a Backup file.