{"id":779,"date":"2022-06-16T06:03:00","date_gmt":"2022-06-16T06:03:00","guid":{"rendered":"https:\/\/www.cubebackup.com\/blog\/?p=779"},"modified":"2022-06-09T06:04:54","modified_gmt":"2022-06-09T06:04:54","slug":"how-to-backup-google-workspace-data-to-s3-compatible-cloud-storage","status":"publish","type":"post","link":"https:\/\/www.cubebackup.com\/blog\/how-to-backup-google-workspace-data-to-s3-compatible-cloud-storage\/","title":{"rendered":"How to backup Google Workspace data to S3-compatible cloud storage."},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>As an online office and collaboration platform for business and educational organizations, <a rel=\"noreferrer noopener\" href=\"https:\/\/workspace.google.com\/\" data-type=\"URL\" data-id=\"https:\/\/workspace.google.com\/\" target=\"_blank\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">Google Workspace<\/span><\/a>\u00a0provides Gmail, Google Drive, Shared drives, Contacts, Calendar, Sites, User, and domain management for millions of organizations all over the world. \u00a0 When a company or a school works on the Google Workspace platform, all business data is stored on Google Cloud so that employees can work on any device from anywhere.\u00a0 Though Google\u2019s service is more reliable than on-premise servers, data loss may still occur due to human error, hacker intrusions, or network issues; data can also be lost when employees leave your organization and their accounts are removed from your Google Workspace domain.\u00a0 As a responsible IT administrator, you should always keep an active backup of your Google Workspace data.\u00a0<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.cubebackup.com\" target=\"_blank\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">CubeBackup<\/span><\/a> is a self-hosted Google Workspace backup solution which can be configured to store backup data on cloud storage, like Google Cloud Storage,  AWS S3, or Azure Cloud Storage.\u00a0  For more information, see  <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cubebackup.com\/docs\/tutorials\/backup-gsuite-data-to-amazon-s3\/\" target=\"_blank\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">How to backup Google Workspace data to Amazon S3<\/span><\/a>  and  <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cubebackup.com\/docs\/tutorials\/backup-gsuite-to-google-cloud-storage\/\" target=\"_blank\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">How to backup Google Workspace data to Google Cloud Storage.<\/span><\/a><\/p>\n\n\n\n<p>CubeBackup also supports backing up Google Workspace data to S3 compatible storage, such as Backblaze B2, Wasabi, and Cloudian.  In this tutorial, we will use DigitalOcean&#8217;s S3 compatible storage, DigitalOcean Spaces, as an example to demonstrate how to configure CubeBackup with S3 compatible cloud storage.\u00a0\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1\u00a0 &#8211; Create a droplet virtual machine on DigitalOcean<\/h2>\n\n\n\n<p>First, you should set up a server to run the CubeBackup application.\u00a0 CubeBackup can run on a local server or a cloud VM, and it is available both on Windows and Linux.   Start by creating a DigitalOcean droplet running Ubuntu 20.04.<\/p>\n\n\n\n<p><strong>Note<\/strong>:\u00a0 When creating a Droplet on DigitalOcean, choose a hardware plan with no less than 4GB RAM.\u00a0\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 &#8211; Install CubeBackup on a DigitalOcean Droplet<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u00a0SSH into your droplet server from your local machine:<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em><span style=\"color:#297191\" class=\"has-inline-color\">\u00a0ssh root@your_IP_address<\/span><\/em><\/p><\/blockquote>\n\n\n\n<ul class=\"wp-block-list\"><li>Install CubeBackup on the Ubuntu server:<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em><span style=\"color:#0071a1\" class=\"has-inline-color\">curl -s https:\/\/www.cubebackup.com\/install.sh | sudo bash<\/span><\/em><\/p><\/blockquote>\n\n\n\n<p>After running the above script, you will see the following output, which means CubeBackup has been successfully installed on the server.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>Installing CubeBackup Service \u2026..\u00a0 OK<\/em><\/p><p><em>Starting CubeBackup Service \u00a0 \u2026..\u00a0 OK<\/em><\/p><p><em>CubeBackup was successfully installed.<\/em><\/p><p><em>You can configure through the web console:\u00a0 http:\/\/&lt;server-ip>:80<\/em><\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3 &#8211; Create a DigitalOcean Space<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>On your DigitalOcean Console,\u00a0 select <strong>Spaces<\/strong> from the left panel.<\/li><li>On the Spaces page, click the \u201c<strong>Create \u2228\u201d<\/strong> button, and select \u201cSpaces\u201d.<\/li><li>Select a datacenter that is located in the same region as your Droplet VM.\u00a0 European users may need to select an EU data center to comply with GDPR.<\/li><li>In the \u201cAllow file listing\u201d section, select <strong>Restrict File Listing<\/strong>.<\/li><li>Enter a unique name for the Space.<\/li><li>Select an existing project for the Space if you have multiple projects.<\/li><li>Click <strong>Create a Space<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/create-spaces.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/create-spaces.png\" alt=\"create digitalocean space\" class=\"wp-image-784\" width=\"549\" height=\"455\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4\u00a0 &#8211; Create a Spaces Access Key<\/h2>\n\n\n\n<p>After the Space has been created, an Access Key must be generated to allow a program to access the Space through APIs.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>On your DigitalOcean Console,\u00a0 select <strong>API<\/strong> from the left panel.<\/li><li>On the \u201cApplications &amp; API\u201d page,\u00a0 click <strong>Generate New Key<\/strong> in the \u201cSpace access keys\u201d section.<\/li><li>On the Spaces page, click the \u201c<strong>Create \u2228\u201d<\/strong> button, and select \u201cSpaces\u201d.<\/li><li>Enter a name for the access key, then click the &#x2705; button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/spaces-access-key.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/spaces-access-key.png\" alt=\"\" class=\"wp-image-786\" width=\"740\" height=\"200\"\/><\/a><\/figure>\n\n\n\n<p>Please keep this page open, as the access key and its secret will be used in the next step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5 &#8211;\u00a0 Configure DigitalOcean Space Object Storage as the backup location in CubeBackup<\/h2>\n\n\n\n<p>After creating the DigitalOcean Space and Access Key, you can now configure CubeBackup to use the newly created Space as backup storage.\u00a0\u00a0\u00a0Access the CubeBackup web console by visiting <em>http:\/\/&lt; droplet-server-ip><\/em> from a web browser on your local computer.\u00a0 A configuration wizard will pop up.\u00a0 <\/p>\n\n\n\n<p>Click Next on the Welcome page, and you will be asked to configure the storage location for your backup. On this page, select \u201c<strong>Amazon S3 compatible storage\u201d<\/strong> from the Storage type dropdown list:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/cubebackup-config-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/cubebackup-config-1.png\" alt=\"\" class=\"wp-image-789\" width=\"584\" height=\"438\"\/><\/a><\/figure>\n\n\n\n<p>Please fill in the other fields:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Data index path<\/strong>:\u00a0 Keep the default value as it is.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Endpoint<\/strong>:\u00a0 The endpoint of the DigitalOcean Space.\u00a0\u00a0<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>To determine the correct endpoint for your Space, go back to the DigitalOcean console, on the <em>Spaces<\/em> page,\u00a0 click the \u201c<strong>More \u2228\u201d <\/strong>button of the Space you just created, then select<strong> Settings. \u00a0 <\/strong>On the Settings page, copy the value of EndPoint and paste it to the corresponding field on the CubeBackup wizard.<\/p><\/blockquote>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Bucket<\/strong>: \u00a0 The name of your DigitalOcean Space.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Access key ID<\/strong>: The Spaces access key generated in Step 4.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Secret access key<\/strong>: The access key secret generated in Step 4.  <\/li><\/ul>\n\n\n\n<p>Finally, click <strong>Next\u00a0<\/strong>on the configuration wizard.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6 &#8211; other configurations<\/h2>\n\n\n\n<p>After configuring your backup storage by setting DigitalOcean as the backup location, CubeBackup will ask you to create a Google Service account\u00a0to access corresponding Google APIs. For detailed information, please follow the instructions in the CubeBackup <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cubebackup.com\/docs\/user_guide\/initial_config_linux\/#step-3-create-google-service-account\" target=\"_blank\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">configuration guide<\/span><\/a>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Backup &amp; Restore<\/h2>\n\n\n\n<p>After the initial configuration, CubeBackup will automatically backup all data in your Google Workspace domain. The first backup may take a long time, depending on the number of users and the size of data in your domain.&nbsp; However, subsequent backups will be much shorter and smoother, since CubeBackup will only backup new or modified data each time.<\/p>\n\n\n\n<p>Not only can the deleted data be restored, but you can also revert a file or a folder to its previous state. CubeBackup keeps version histories of the backup data, so it allows point-in-time restore.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/cubebackup-overview-18.24.36.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cubebackup.com\/blog\/wp-content\/uploads\/2022\/06\/cubebackup-overview-18.24.36.png\" alt=\"\" class=\"wp-image-792\" width=\"800\" height=\"580\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p><br>CubeBackup is an excellent backup tool for Google Workspace, which supports a variety of different storage types, including on-premises storage and cloud storage.\u00a0 By running CubeBackup on a cloud VM, and backing up data to S3-compatible cloud storage, you can set up a reliable and cost-effective backup solution to protect your business data on Google Workspace. If you want to learn more about CubeBackup, check out the <a href=\"https:\/\/cubebackup.com\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">CubeBackup website<\/span><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction As an online office and collaboration platform for business and educational organizations, Google Workspace\u00a0provides Gmail, Google Drive, Shared drives, Contacts, Calendar, Sites, User, and domain management for millions of organizations all over the world. \u00a0 When a company or a school works on the Google Workspace platform, all business data is stored on Google [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"zakra_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"footnotes":""},"categories":[2,36],"tags":[],"class_list":["post-779","post","type-post","status-publish","format-standard","hentry","category-cubebackup","category-google-workspace-backup"],"_links":{"self":[{"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/posts\/779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/comments?post=779"}],"version-history":[{"count":12,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/posts\/779\/revisions"}],"predecessor-version":[{"id":796,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/posts\/779\/revisions\/796"}],"wp:attachment":[{"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/media?parent=779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/categories?post=779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cubebackup.com\/blog\/wp-json\/wp\/v2\/tags?post=779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}