How to remove a Google Workspace domain from CubeBackup.


As a Google Workspace administrator or partner, you are probably backing up multiple Google Workspace domains in CubeBackup. Here are the steps to remove a domain from CubeBackup.

Step1: Delete the domain from CubeBackup

  1. Log into CubeBackup web console, switch to the domain that you want to delete, and make sure there is no backup job running for this domain.

    Tip: You can click the Stop backup button to stop the current backup.

  2. Log into your backup server.

  3. This operation requires administrator/root privilege.

    • If CubeBackup runs on Windows, right-click the Windows Powershell or Command Prompt, and select Run as administrator.
    • If CubeBackup runs on Linux or in a Docker container, use sudo … in the Bash shell.

  4. Run the cbackup removeDomain command to remove the domain from CubeBackup.

    cbackup removeDomain <domain-name>

Tip:
On Windows, the cbackup.exe file is located in "C:\Program Files\CubeBackup4\bin" directory by default.
On Linux, the cbackup file is most likely located in "/opt/cubebackup/bin" directory.

NOTE:

  • The cbackup removeDomain command removes only the domain from CubeBackup. The backup data for this domain remains completely untouched.
  • If a restore request comes up for this domain after it has been removed, you can add this domain again and the backups for this domain will once again show up in the RESTORE page.

Step2: Remove unneeded backup data (Optional)

In some cases, you may no longer need the backup files for a domain after it has been removed from CubeBackup. For example, you may have tried CubeBackup with a test domain and would like to erase everything after the testing period is over.

To completely erase all backup data for a domain:

  1. Remove the backup data for this domain.
    Manually delete the backup data directory for this domain. For example, if you stored the backup data in the /var/gsuite-backup directory, you can delete the directory /var/gsuite-backup/domains/<deleted-domain.com>.

    Tip: If you do not know where backup data is stored, you can find the correct location at the right bottom of the OVERVIEW page in CubeBackup web console.

  2. Remove the data index for this domain.
    Manually delete the data index directory for this domain. For example, if you stored the data index in the /opt/cubebackup/index directory, you can delete the directory /opt/cubebackup/index/domains/<deleted-domain.com>.

    Tip: If you do not know where data index is stored, you can find the find the correct location at the right bottom of the OVERVIEW page in CubeBackup web console.