RESTORE(8)
π RESTORE(8) π Β· Cyrus IMAP
okay bestie, welcome to the RESTORE(8) girlies' guide π this is the manual page for restore from Cyrus IMAP, and yes it's giving backup-restoration main character energy. let's get into it π
β¨ NAME β¨
restore β Cyrus IMAP documentation
Restore content from Cyrus backups. periodt π¦
β¨ SYNOPSIS β¨
restore [OPTIONS] server [MODE] backup [ mboxname | uniqueid | guid ]...
β¨ DESCRIPTION β¨
β οΈ NOTE: Cyrus Backups are experimental, incomplete, and deprecated as of 3.10. no cap, they said it not me π
restore is the tool for restoring messages and mailboxes from a Cyrus backup onto a Cyrus IMAP server. It must be run from the server that contains the backup storage. fr fr, don't try to run it from somewhere else.
restore reads its configuration options out of the imapd.conf(5) file unless you say otherwise with -C. π
server specifies the destination server that content should be restored to. It should be of the form 'host[:port]', where host is either a hostname, an IPv4 address, or an IPv6 address, and where the optional port is either a known service name (see services(5)) or a decimal port number. If port is omitted, imap will be tried first, followed by csync. π«Ά
The destination server must point to either an imapd(8) instance with the replication capability enabled, or a sync_server(8) instance. Either way, it must be Cyrus version 3.0 or newer.
restore will authenticate to the destination server according to the restore_authname, restore_password and restore_realm configuration options. The credentials should correspond with one of the destination server's admins. π
backup is interpreted according to the specified MODE. See Modes below. β¬οΈ
If neither -a nor -F options were provided, then the remaining arguments constitute a list of objects to be restored. These may be mailboxes (specified by either mboxname or uniqueid) or messages (specified by their guid). The objects may be specified in any order, and both mailboxes and individual messages may be restored in one go. cyr_backup(8) can be used to identify objects to restore from a Cyrus backup. π
Selected mailboxes will have their messages restored to a mailbox of the same name, which will be created if necessary. Individually-selected messages will be restored to the mailboxes in which they previously existed. In both cases the -M option can be used to override the destination mailbox (see below), but note the consequences of doing this when multiple mailbox objects have been specified, or when the -r option is in use. π
Mailboxes that are created during the restoration process will have their ACL set to the one stored in the backup. The -A option can be used to override this. Mailboxes that are not created during the restoration process (i.e. when restoring into mailboxes that already exist) will not have their ACLs altered. so like, hands off, they stay how they are π
β¨ OPTIONS β¨
-A [acl],--override-acl[=acl]β Apply specifiedaclto restored mailboxes, rather than their ACLs as stored in the backup.
If acl is the empty string (e.g. -A "") or is unspecified, mailboxes will be restored with the default ACL for their destination owner. This is mostly useful when restoring folders from one user's backup into a different user's mailbox. π§
-C config-fileβ Use the specified configuration fileconfig-filerather than the defaultimapd.conf(5).-D,--keep-deletedprefixβ Don't trimdeletedprefixfrom mailbox names prior to restoring. This is mainly useful for rebuilding failed servers, where deleted mailboxes should be restored as deleted mailboxes, not as new ones.
The default is to trim the prefix before restoring.
If the original server from which the backups were produced had delete_mode set to immediate, then the mailboxes in the backup will not have such a prefix, and this option won't have any useful effect. π
See imapd.conf(5) for information about the deletedprefix and delete_mode configuration options.
-F input-file,--input-file=input-fileβ Get the list of mailboxes or messages frominput-fileinstead of from the command line arguments.
input-file should contain one object specification (either an mboxname, a uniqueid, or a guid) per line. Empty lines, and lines beginning with a '#' character, are ignored. π
-L,--local-onlyβ Local operations only. Actions required to restore the requested mailboxes and messages will be performed on the destination server only.mupdate(8)actions will not occur.
The default is for mupdate actions to occur if the destination server is part of a murder.
This option has no effect if the destination server is not part of a murder.
-M mboxname,--dest-mailbox=mboxnameβ Messages are restored to the mailbox with the specifiedmboxname. If no mailbox of this name exists, one will be created.
If multiple mailbox objects are to be restored, whether due to being specified on the command line, in an input-file, or via the -r option, then the collective contents of all such mailboxes will be restored to the single mailbox mboxname. This may not be what you want! π
The default when restoring mailboxes is to restore their respective contents into mailboxes of the same names.
The default when restoring individual messages is to restore them into their original mailboxes.
-P partition,--dest-partition=partitionβ Restore mailboxes to the specifiedpartition-U,--keep-uidvalidityβ Try to preserveuidvalidityand other related fields, such that the restored mailboxes and messages appear like they never left, and IMAP clients can avoid expensive state updates. β¨
This can only occur if the mailboxes to be restored do not already exist on the destination server. As such, this option is mainly useful when rebuilding a failed server.
If the destination mailboxes already exist, restored messages will be appended as if newly delivered, regardless of whether the -U option was specified.
-X,--skip-expungedβ Do not restore messages that are marked as expunged in the backup.
See also -x.
-a,--all-mailboxesβ Try to restore all mailboxes in the specified backup. π-n,--dry-runβ Do nothing. The work required to perform the restoration will be calculated (and reported depending on verbosity level), but no restoration will take place, and no connection will be made to the destination server.
Note that the server argument is still mandatory with this option. yes bestie, even when you're doing nothing, you still gotta say where π«
-r,--recursiveβ Recurse into submailboxes. When restoring mailboxes, also restore any mailboxes contained within them.
The default is to restore only explicitly-specified mailboxes.
-v,--verboseβ Increase the verbosity level. This option can be specified multiple times for additional verbosity. π£οΈ-w seconds,--delayed-startup=secondsβ Waitsecondsbefore starting. This is useful for attaching a debugger. π-x,--only-expungedβ Only restore messages that are marked as expunged in the backup.
This can be convenient for restoring messages that were accidentally deleted by the user, without needing to track down individual message guids. π₯Ί
See also -X.
-z,--require-compressionβ Require compression for server connection. The restore will abort if compression is unavailable. no compression = no vibes = abort π
β¨ MODES β¨
-f backup,--file=backupβbackupis interpreted as a filename. The named file does not need to be known about in the backups database. π-m backup,--mailbox=backupβbackupis interpreted as a mailbox name. There must be a known backup for the user whose mailbox this is.
Known backups are recorded in the database specified by the backup_db and backup_db_path configuration options. ποΈ
-u backup,--userid=backupβbackupis interpreted as a userid. There must be a known backup for the specified user.
This is the default if no mode is specified. π
β¨ EXAMPLES β¨
(nothing here bestie, the original page is empty too π«Ά)
β¨ HISTORY β¨
(also empty, iconic of it π )
β¨ FILES β¨
(empty as well, we love a minimal queen β¨)
β¨ SEE ALSO β¨
imapd.conf(5), services(5), cyr_backup(8), imapd(8), mupdate(8), sync_server(8)
go read those too, they're the supporting cast π«Ά
β¨ AUTHOR β¨
The Cyrus Team π
β¨ COPYRIGHT β¨
1993β2025, The Cyrus Team
and that's the whole thing bestie!! π this was Cyrus IMAP version 3.10.2, dated Jun 27, 2025, and it's the RESTORE(8) page. go restore something responsibly, ily ππ¦β¨
π¦ where this page comes from
- debian trixie: cyrus-common 3.10.2-1+deb13u2 Β· CMU
- ubuntu questing: cyrus-common 3.10.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms