KOPANO-BACKUP(8)
π KOPANO-BACKUP(8) π
okay bestie, listen up β this is kopano-backup, the Kopano Backup tool, and it's about to become your new favorite thing in the whole entire world. no cap.
β¨ SYNOPSIS β¨
kopano-backup [OPTION...] [PATH]
π DESCRIPTION π
So like. kopano-backup is the tool you use to make backups of user data β or to restore them. We're talking one or more stores, or folders. Emails, calendar items, contacts, etc., plus user settings like rules, permissions and WebApp settings. the whole vibe. π
Backups happen incrementally, okay? Which means: if a backup directory already exists for a given user/store, then only the changes that happened since the last backup run get processed. not me being efficient or anything. β¨
And for backup (not restore!!) you can process multiple stores in parallel. obsessed.
There are also options to peek inside a backup directory, and to restore just individual messages/items. slay.
π OPTIONS π
--auth-pass,-PPASS β authenticate with the password you specify. π--auth-user,-UNAME β authenticate as the user you specify.--company,-CNAME β back up the users and public store for the company you specify.--config,-cFILE β load your configuration settings from the file you specify.--deletesYESNO β backup/restore/show deleted items and folders. The tea here: when you're backing up, the default is to keep data that's been soft- or hard-deleted. When you're restoring, the default is to NOT restore that data. And when you're viewing the contents of a backup directory, the default is to show it. three different defaults, iconic behavior tbh.--differentialβ create 'differential' backup(s), containing all the changes since the previous or regular backup(s), in separate directories called'differential/username/N'. You can inspect differential backups with--indexand--stats. Also go look at--merge. π¦--folder,-fPATH β backup/restore only the folder(s) with the path you specify. You can specify multiple folders. Subfolders can come along for the ride with--recursive.--indexβ list the messages/items inside the backup directory you specify, in CSV format. For every message/item you get sourcekeys, the respective folders, last modified dates and subjects. receipts! π--mergeβ merge 'differential' backups for a given user into the regular backup. See--differential.--log-level,-lNAME β specify the log-level, for example'error','warning''info'or'debug'.--only-metaβ only backup/restore meta data, like settings, permissions and rules.--output-dir,-OPATH β create/update backup directories in the directory you specify, instead of the local directory.--period-begin,-bDATE β backup/restore data that was last modified on or after the date you specify (YYYY-MM-DD).--period-end,-eDATE β backup/restore data that was last modified before the date you specify (YYYY-MM-DD).--purgeN β permanently delete data from the backup directory that's been marked as deleted more than the number of days you specify ago. > bestie this one is PERMANENT. like gone gone. π«£--recursiveβ when you specify folders (--folder), also include subfolders in backup/restore.--restoreβ restore the contents of the backup directory you specify. The respective store is determined automatically, but you can also specify it explicitly, for example with--user.--restore-rootPATH β when restoring, put the data under a folder with the path (or name) you specify, for example'some_folder'or'Inbox/some_subfolder'.--server-socket,-sSOCKET β connect to the storage server through the socket you specify.--sourcekeySOURCEKEY β restore the message/item with the sourcekey you specify (as shown using--index). Must be combined with--restore. You can specify multiple sourcekeys. π--skip-attachmentsβ don't backup/restore attachments.--skip-deletedβ don't backup/restore the deleted mail folder.--skip-junkβ don't backup/restore the junk folder.--skip-metaβ don't backup/restore meta data, like settings, permissions and rules.--skip-publicβ don't backup/restore the public store.--ssl-key,-kFILE β specify the SSL key file.--ssl-pass,-pPASSWORD β specify the SSL key password.--statsβ list the folders inside the backup directory you specify, in CSV format. Folder sizes get shown for each folder. π--store,-SGUID β backup the store you specify. Instead of a GUID you can also say'public', to denote the public store.--user,-uNAME β backup data of the user you specify. You can specify multiple users. By default, all users are included. When restoring, restore into the store of the user you specify.--worker-processes,-wN β when backing up data from multiple stores, process those stores in parallel, using the number of workers you specify. β¨
π EXAMPLES π
Backup user 'henk', creating/updating a backup directory with the same name:
kopano-backup -u henk
Restore the same user (possibly on another server):
kopano-backup --restore henk
Backup users 'henk' and 'fred', in parallel, in a specified directory:
kopano-backup -u henk -u fred -w 2 -O backups
Search for a message with a specific subject:
kopano-backup --index backups/henk | grep subject
Restore a single message:
kopano-backup --restore backup/henk --sourcekey 72EE69D0A283408E89BFC35AD251E9B3830000000000
Backup calendars of all users:
kopano-backup -f Calendar -O calendars
Recursively restore inbox of 'fred' into store of 'henk', in a certain subfolder:
kopano-backup --restore fred -f Inbox -u henk --recursive --restore-root from_fred
Restore everything last modified in 2014:
kopano-backup --restore fred -b 2014-01-01 -e 2015-01-01
Create differential backup for 'fred':
kopano-backup --differential -u fred
Inspect specific differential backups:
kopano-backup --stats differential/fred/1
kopano-backup --stats differential/fred/2
Merge differential backups for 'fred':
kopano-backup --merge fred
π AUTHOR π
Written by Kopano.
and that's the whole page bestie, we ate and left no crumbs π β this was Kopano 8, from November 2016, and yeah it lives in the KOPANO-BACKUP(8) section of the manual. go forth and back up your life. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: kopano-backup 8.7.0-7.1ubuntu10 Β· AGPL-3.0-only
- ubuntu jammy: kopano-backup 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