Skip to content

Python tool that creates backups of disk in Google Cloud.

Notifications You must be signed in to change notification settings

gutsul/gcloud-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCloudBackup

Settings to start development

  1. Install the Google Cloud SDK, initialize it and run core gcloud commands from the command-line on your development systems. Perform the following steps:
# Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk
  1. Provide your credentials to the tool with the command:
gcloud auth application-default login 

Result:

Credentials saved to file: [/home/ygrigortsevich/.config/gcloud/application_default_credentials.json]

Requirements

  • Python 3
  • sqlite
sudo apt-get install sqlite
sudo pip3 install --upgrade prettytable
sudo pip3 install --upgrade google-api-python-client

Usage

  1. Add disk to backup list

  2. Configure backup

  3. Add job to crontab

About

Python tool that creates backups of disk in Google Cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages