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
Flag | Short | Default | Help |
---|---|---|---|
--backup | ID 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-subject | Select emails with a subject containing this value. | ||
--email-sender | Select emails from a specific sender. | ||
--email-received-after | Select emails received after this datetime. | ||
--email-received-before | Select emails received before this datetime. | ||
--archive | false | Export data as an archive instead of individual files | |
--passphrase | Passphrase to protect encrypted repository contents | ||
--aws-access-key | S3 access key | ||
--aws-secret-access-key | S3 access secret | ||
--aws-session-token | S3 session token | ||
--help | -h | false | help for exchange |
Global and inherited flags
Flag | Short | Default | Help |
---|---|---|---|
--config-file | $HOME/.corso.toml | config file location | |
--debug-api-calls | false | add non-2xx request/response errors to logging | |
--hide-progress | false | turn off the progress bar displays | |
--json | false | output data in JSON format | |
--log-file | corso-<timestamp>.log | location for writing logs, use '-' for stdout | |
--log-format | text | set the log format to text | |
--log-level | info | set the log level to debug | |
--mask-sensitive-data | false | anonymize personal data in log output | |
--no-stats | false | disable anonymous usage statistics gathering | |
--retain-progress | false | retain the progress bar displays after completion | |
--verbose | false | don't hide additional information |