Skip to main content

corso export exchange

Export M365 Exchange service data

corso export exchange <destination> --backup <backupId> [flags]

Examples

> Only email exports are supported as of now.

# Export emails with ID 98765abcdef and 12345abcdef from Alice's last backup (1234abcd...) to my-folder
corso export exchange my-folder --backup 1234abcd-12ab-cd34-56de-1234abcd --email 98765abcdef,12345abcdef

# Export emails with subject containing "Hello world" in the "Inbox" to my-folder
corso export exchange --backup 1234abcd-12ab-cd34-56de-1234abcd \
--email-subject "Hello world" --email-folder Inbox my-folder

Flags

FlagShortDefaultHelp
--backupID of the backup to retrieve.
--email``Select email messages by ID; accepts '*' to select all emails.
--email-folder``Select emails within a folder; accepts '*' to select all email folders.
--email-subjectSelect emails with a subject containing this value.
--email-senderSelect emails from a specific sender.
--email-received-afterSelect emails received after this datetime.
--email-received-beforeSelect emails received before this datetime.
--archivefalseExport data as an archive instead of individual files
--passphrasePassphrase to protect encrypted repository contents
--aws-access-keyS3 access key
--aws-secret-access-keyS3 access secret
--aws-session-tokenS3 session token
--help-hfalsehelp for exchange

Global and inherited flags

FlagShortDefaultHelp
--config-file$HOME/.corso.tomlconfig file location
--debug-api-callsfalseadd non-2xx request/response errors to logging
--hide-progressfalseturn off the progress bar displays
--jsonfalseoutput data in JSON format
--log-filecorso-<timestamp>.loglocation for writing logs, use '-' for stdout
--log-formattextset the log format to text
--log-levelinfoset the log level to debug
--mask-sensitive-datafalseanonymize personal data in log output
--no-statsfalsedisable anonymous usage statistics gathering
--retain-progressfalseretain the progress bar displays after completion
--verbosefalsedon't hide additional information