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.
Methods
Section titled “Methods”backup_obj.load_metadata()
Section titled “backup_obj.load_metadata()”Loads version, build, and modpack information from the saved archive if it has not already been read. Returns the same BackupObject
Attributes
Section titled “Attributes”| Attribute | Type | Description |
|---|---|---|
backup_obj.name | str | Name of the backed-up server |
backup_obj.path | str | Full path to the saved archive |
backup_obj.size | int | Back-up size in bytes |
backup_obj.date | datetime | Date of the back-up, as provided by the manager |
backup_obj.type | str | Server distribution recorded in the archive |
backup_obj.version | str | Minecraft version recorded in the archive |
backup_obj.build | str / None | Server build, if available |
backup_obj.modpack_version | str / None | Saved modpack version, if available |
backup_obj.metadata_loaded | bool | Whether archive metadata has been loaded |