Skip to content

BackupObject

Represents one server back-up, returned by backup.latest, included in backup.list, and accepted by back-up restoration methods. The object reads archive metadata on demand when requested.

View the source

Loads version, build, and modpack information from the saved archive if it has not already been read. Returns the same BackupObject

AttributeTypeDescription
backup_obj.namestrName of the backed-up server
backup_obj.pathstrFull path to the saved archive
backup_obj.sizeintBack-up size in bytes
backup_obj.datedatetimeDate of the back-up, as provided by the manager
backup_obj.typestrServer distribution recorded in the archive
backup_obj.versionstrMinecraft version recorded in the archive
backup_obj.buildstr / NoneServer build, if available
backup_obj.modpack_versionstr / NoneSaved modpack version, if available
backup_obj.metadata_loadedboolWhether archive metadata has been loaded