Skip to main content

corso export groups

Export M365 Groups service data

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

Examples

# Export a message in Marketing's last backup (1234abcd...) to /my-exports
corso export groups my-exports --backup 1234abcd-12ab-cd34-56de-1234abcd --message 98765abcdef

# Export all messages named in channel "Finance Reports" to the current directory
corso export groups . --backup 1234abcd-12ab-cd34-56de-1234abcd \
--message '*' --channel "Finance Reports"

# Export all messages in channel "Finance Reports" that were created before 2020 to /my-exports
corso export groups my-exports --backup 1234abcd-12ab-cd34-56de-1234abcd
--channel "Finance Reports" --message-created-before 2020-01-01T00:00:00

# Export all files and folders in folder "Documents/Finance Reports" that were created before 2020 to /my-exports
corso export groups my-exports --backup 1234abcd-12ab-cd34-56de-1234abcd \
--folder "Documents/Finance Reports" --file-created-before 2020-01-01T00:00:00

# Export all posts from a conversation with topic "hello world" from group mailbox's last backup to /my-exports
corso export groups my-exports --backup 1234abcd-12ab-cd34-56de-1234abcd --conversation "hello world"

# Export post with ID 98765abcdef from a conversation from group mailbox's last backup to /my-exports
corso export groups my-exports --backup 1234abcd-12ab-cd34-56de-1234abcd --conversation "hello world" --post 98765abcdef

Flags

FlagShortDefaultHelp
--backupID of the backup to retrieve.
--site``Web URL of the site to operate on
--librarySelect only this library; defaults to all libraries.
--folder``Select by folder; defaults to root.
--file``Select by file name.
--file-created-afterSelect files created after this datetime.
--file-created-beforeSelect files created before this datetime.
--file-modified-afterSelect files modified after this datetime.
--file-modified-beforeSelect files modified before this datetime.
--list``Select lists by name.
--list-modified-afterSelect lists modified after this datetime.
--list-modified-beforeSelect lists modified before this datetime.
--list-created-afterSelect lists created after this datetime.
--list-created-beforeSelect lists created before this datetime.
--channel``Select data within a Team's Channel.
--message``Select messages by reference.
--message-created-afterSelect messages created after this datetime.
--message-created-beforeSelect messages created before this datetime.
--message-last-reply-afterSelect messages with replies after this datetime.
--message-last-reply-beforeSelect messages with replies before this datetime.
--conversation``Select data within a Group's Conversation.
--post``Select Conversation Posts by reference.
--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 groups

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