KOPANO-ARCHIVER-RESTORE(8)
π KOPANO-ARCHIVER-RESTORE π
okay so bestie, this is a page from the Kopano Core user reference β it's the kopano-archiver-restore manual, and it's literally the glow-up your mailbox has been waiting for. let's get into it π«Ά
β¨ NAME β¨
kopano-archiver-restore β the tool that restores all your stubbed and removed messages back into a primary store, using the messages it finds in the archive(s) you've got attached right now or had attached back in the day.
πΈ SYNOPSIS πΈ
kopano-archiver-restore [OPTION...]
π¦ DESCRIPTION π¦
so here's the tea: kopano-archiver-restore repopulates a primary store until it's in a state where no archive is required to read any message. translating that out of cryptic-speak: every stubbed message gets destubbed, and every message that got deleted after archiving gets restored. periodt. π
the reason you'd reach for kopano-archiver-restore instead of just dragging messages back from the archive in Outlook or Webaccess? the restored messages come out sanitized, which means they can be properly rearchived later. it's giving clean data. it's giving future-proof. π
π STRATEGY π
the strategy kopano-archiver-restore takes is this: it iterates through all folders in the primary store, and tries to open the archive folders attached to that store. and listen β there can be more than one attached archive folder, and those folders don't have to exist in an archive that's currently attached. so folders from previously used archives will get restored too, as long as they still exist. the way it's just casually digging up old archives π iconic.
once the archives have been resolved, kopano-archiver-restore creates a list of restorable messages based on the reference entryid found in the archived copies. and when multiple archives are found? multiple archived copies for the same primary message can exist, and in that case kopano-archiver-restore will choose the most recent one. queen behaviour, honestly.
once the list of restorable messages is complete, kopano-archiver-restore starts restoring by first determining if the primary message β referenced by the reference entryid from the archived copies β exists, and if so, whether it's stubbed. here's the flow:
- if the primary message exists and is not stubbed, there's no need to restore anything. nothing to see here, moving on β¨
- if the message exists but is stubbed, it gets destubbed.
- if the primary message does not exist, a brand new message is created based on the archived copy.
and in that last case, the archived copy is updated so it references the newly created message. why? because that's needed to make sure a subsequent run of kopano-archiver-restore won't create another copy. no duplicates in this house. π
π OPTIONS π
--detachβ detach the selected or all archive stores before starting the restore procedure. this keeps the archiver from re-archiving the messages you just restored. lowkey essential.--unhookβ unhook the selected or all archive stores once the restore process has completed. this implies--detach, and it only works on archive stores. π--removeβ remove the selected or all archive stores once the restore process has completed. this implies--unhook, and it also only works on archive stores.--user,-uNAME β run the script for just the specified user(s). by default, it runs for all users.--log-level,-lNAME β specify the log-level. for example,'error','warning','info'or'debug'.--server-socket,-sSOCKET β connect to the storage server through the specified socket.--ssl-key,-kFILE β specify the SSL key file.--ssl-pass,-pPASSWORD β specify the SSL key password.
heads up bestie:--unhookand--removeare archive-store-only moves, and each one implies the one before it.--removeβ--unhookβ--detach. it's a whole chain reaction. π
π AUTHOR π
Written by Zarafa.
π that's the whole page!! this was the kopano-archiver-restore manpage from Kopano 8, dated November 2016 (Kopano Core user reference, if you wanna be fancy about it). go restore those messages, bestie β you got this. mwah ππ¦β¨
π¦ where this page comes from
- ubuntu jammy: kopano-utils 8.7.0-7.1ubuntu10 Β· AGPL-3.0-only
- ubuntu jammy: kopano-utils 8.7.0-7.1ubuntu10.1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms