Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/2018/Archives for August 2018

Archives for August 2018

August 8, 2018

Create Image on GCP

Here’s the command to create an image from an existing VM instance. You can create an image from disks, snapshots, images or from a cloud storage file. You can use images you built to launch and restore VM instances, as well as create Instance Templates.

gcloud compute --project=your-project images create your-server --source-disk=your-server --source-disk-zone=us-central1-c

gcloud compute --project=your-project images create your-server --source-disk=your-server --source-disk-zone=us-central1-c

Filed Under: Cloud Tagged With: gcp, images

August 8, 2018

Take A GCP Snapshot

Here’s the gcloud command to create a snapshot of your GCP instance.

gcloud compute disks snapshot your-server \
--snapshot-names=your-server-180808 \
--project=your-project \
--zone=us-central1-c

gcloud compute disks snapshot your-server \ --snapshot-names=your-server-180808 \ --project=your-project \ --zone=us-central1-c

Filed Under: Cloud Tagged With: gcp, snapshot

August 3, 2018

Cloning A GCP Repo

Here are the steps on how to clone a Google Cloud Platform (GCP) repository. This is assuming you already installed Google Cloud SDK.

gcloud init
gcloud source repos clone name_of_repo --project=project_name
cd name_of_repo
git commit -a -m "your comment"
git push -u origin master

gcloud init gcloud source repos clone name_of_repo --project=project_name cd name_of_repo git commit -a -m "your comment" git push -u origin master

Filed Under: Cloud Tagged With: gcp, git, repo

  • 1
  • 2
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021