FreeSBC:Uploading backups to Google Cloud Bucket
From TBwiki
(Difference between revisions)
(Created page with "In this tutorial, we are going to help you use Google gsutil to access Google Bucket. We will do this so you can easily build your own scripts for backing up your files to the...") |
|||
Line 7: | Line 7: | ||
1. Update repository with Cloud SDK repo information: | 1. Update repository with Cloud SDK repo information: | ||
+ | <pre> | ||
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM | sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM | ||
[google-cloud-sdk] | [google-cloud-sdk] | ||
Line 17: | Line 18: | ||
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg | https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg | ||
EOM | EOM | ||
+ | </pre> |
Revision as of 06:00, 30 December 2020
In this tutorial, we are going to help you use Google gsutil to access Google Bucket. We will do this so you can easily build your own scripts for backing up your files to the cloud and easily retrieve them as needed.
Install and Configure Google Cloud SDK
Cloud SDK is available in package format for installation on Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Fedora 32, and CentOS 7 systems. This package contains the gcloud, gcloud alpha, gcloud beta, gsutil, and bq commands.
1. Update repository with Cloud SDK repo information:
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM [google-cloud-sdk] name=Google Cloud SDK baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOM