• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Archives for August 2018

Create Image on GCP

August 8, 2018

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

Take A GCP Snapshot

August 8, 2018

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

Cloning A GCP Repo

August 3, 2018

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

  • Go to page 1
  • Go to page 2
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023