This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: gam-archive.sh | |
# Usage: gam-archive.sh email_prefix [mail|drive|both] | |
# Example: gam-archive.sh jsmith mail | |
# Description: This script will archive a Google Workspace account's email (as .mbox) and/or Google Drive files to a specified Google Drive folder. | |
# Author: Zoë Kelly ([email protected]), Kim Nilsson ([email protected]) | |
# License: MIT | |
# Created: 2020 | |
# Updated: 2022-07-19 | |
## Note: Depending on the export size and your upload speed, it could take 10 minutes or longer for each archival. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: gam-batch-archive.sh | |
# Usage: cat archive_user_list.txt | gam-batch-archive.sh mail|drive|both | |
# Description: This scripts allows the batch archival of Google Workspace accounts, via the accompanying gam-archive.sh script | |
# Author: Zoë Kelly ([email protected]), Kim Nilsson ([email protected]) | |
# License: MIT | |
# Created: 2020 | |
# Updated: 2022-07-19 | |
## Note: The gam-archive.sh script should be in the same folder or (preferably) in $PATH. | |
## Note: The input file should have a list of Google Workspace users to be archived, each on a new line. |