Backup process for user emails in Google Workspace using Vault
The process is as follows:
create_vault_export_v1.py
: creates the Vault exports for each offboarding user.generate_download_script_v1.py
: generates a bash file with the commands to organise and download all the files (info is extracted from the COMPLETED exports). There is an example of the bash fileexample_download_exports.sh
Beware that you need to set up permissions on Google Workspace and your GCP project
Some documentation that may be worth reading: