Example #1
0
 def createBackup(self) -> Tuple[Optional[bytes], Optional[Dict[str, str]]]:
     self._disableAutoSave()
     backup = Backup(self._application)
     backup.makeFromCurrent()
     self._enableAutoSave()
     # We don't return a Backup here because we want plugins only to interact with our API and not full objects.
     return backup.zip_file, backup.meta_data
Example #2
0
 def createBackup(self) -> Tuple[Optional[bytes], Optional[Dict[str, str]]]:
     self._disableAutoSave()
     backup = Backup(self._application)
     backup.makeFromCurrent()
     self._enableAutoSave()
     # We don't return a Backup here because we want plugins only to interact with our API and not full objects.
     return backup.zip_file, backup.meta_data
Example #3
0
 def createBackup(self) -> (Optional[bytes], Optional[dict]):
     """
     Get a backup of the current configuration.
     :return: A Tuple containing a ZipFile (the actual backup) and a dict containing some meta data (like version).
     """
     self._disableAutoSave()
     backup = Backup()
     backup.makeFromCurrent()
     self._enableAutoSave()
     # We don't return a Backup here because we want plugins only to interact with our API and not full objects.
     return backup.zip_file, backup.meta_data