Ich habe nun die zweite Variante erprobt:
1. kopano-backup -s
http://ip-des-zarafa-systems:236/zarafa -U benutzername-eines-admins -P "password-zum-admin" -u zu-sichernder-nutzer -l INFO --skip-junk --skip-deleted
2. kopano-backup --restore fred -U jbond -P skyfall -u fred -l INFO
Schritt 1 hat funktioniert. Im Verzeichnis /volume1/kopano/backup liegen alle User.
Schritt 2 funktioniert bei mir nicht, da kommt dann
running backup on kopano in container. For backup zarafa on same host use -s
http://:236/zarafa or respective host ip-address
2018-08-03 11:47:16,873 - backup - INFO - starting backup
2018-08-03 11:47:17,009 - backup - INFO - starting restore of xxxxxxxxxxxxxxxxx
[error ] HrGetStore failed: No store present.
2018-08-03 11:47:17,997 - backup - INFO - stopping backup
2018-08-03 11:47:18,148 - backup - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/log.py", line 90, in log_exc
try: yield
File "/usr/lib/python3/dist-packages/kopano/service.py", line 181, in start
_daemon_helper(self.main, self, self.log)
File "/usr/lib/python3/dist-packages/kopano/service.py", line 58, in _daemon_helper
func()
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 411, in main
self.restore(data_path)
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 450, in restore
store = self._store(self.options.users[0])
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 765, in _store
return self.server.user(username).store
File "/usr/lib/python3/dist-packages/kopano/service.py", line 168, in server
self._server = _server.Server(options=self.options, config=self.config.data, log=self.log, service=self)
File "/usr/lib/python3/dist-packages/kopano/server.py", line 250, in __init__
self.mapisession = OpenECSession(self.auth_user, self.auth_pass, self.server_socket, sslkey_file=self.sslkey_file, sslkey_pass=self.sslkey_pass, flags=flags)
File "/usr/lib/python3/dist-packages/MAPI/Util/__init__.py", line 86, in OpenECSession
admin.ConfigureMsgService(uid, 0, 0, profprops)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 1671, in ConfigureMsgService
return _MAPICore.IMsgServiceAdmin_ConfigureMsgService(self, lpUID, ulUIParam, ulFlags, cValues)
MAPI.Struct.MAPIErrorNotFound: MAPI error 8004010F (MAPI_E_NOT_FOUND)
"No store present" ist nicht richtig, der User und somit der Store ist über den WebAdmin angelegt.