Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Backup Google Cloud Compute Engine

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
How To Backup Google Cloud Compute Engine
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

This post describes how to take backup of your Compute Engine Instance. There the 2 methods to take backup of your VM Instance. Create Image of your whole instance Create Snapshot of your disk Create Image of your whole Instance Go to Google Cloud Console and navigate to Compute Engine >> Images. ADVERTISEMENT Click Create […]

ADVERTISEMENT

This post describes how to take backup of your Compute Engine Instance.

There the 2 methods to take backup of your VM Instance.

  • Create Image of your whole instance
  • Create Snapshot of your disk

Create Image of your whole Instance

Go to Google Cloud Console and navigate to Compute Engine >> Images.

ADVERTISEMENT

Click Create Image.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Enter a Name for your image.

In Source select Disk.

ADVERTISEMENT

In Source Disk select the disk of the Instance.

If you select a disk of an instance which is running you need to check off the Keep instance running to take an image.

ADVERTISEMENT

It’s not recommended to create an image from a running instance because you may get a corrupted image. So you can stop your instance and create a Image backup of your Compute Engine Instance.

Create An Image

Click Create.

ADVERTISEMENT

Once a Image backup is done you can create new instance with the Image.

So taking a Image backup will result in downtime for your live website. To prevent this you can create Snapshot of your disk without any downtime.

ADVERTISEMENT

Create a Snapshot of your Instance

Go to Google Cloud Console and navigate to Compute Engine >> Snapshots.

Click Create Snapshot.

Enter a Name for your snapshot.

In Source Disk select the disk of the Instance.

Create A Snapshot

Click Create.

It will take sometime to create depending on the size of your disk. Now you can create a new VM Instance with this snapshot.

Create Backup of your Website

You can also create a backup of your program files alone as a tar.gz file.

Let’s assume you have your website files in /home/username/yourdomainname.com/public location.

Now SSH to your VM Instance and go your respective directory to create a backup. To take a backup of the public folder follow the below steps.

cd /home/username/yourdomainname.com
sudo tar -zcf filename.tar.gz public

This command will create a backup of the public directory.

Once the backup is done you can download the tar file to your local computer. Learn how to connect to Google Compute Engine Instance using FileZilla.

Create a Database Backup

Navigate to Storage >> CloudSQL and click the Instance you need to create backup. You can also enable automatic backups for your CloudSQL instance. To create a database backup see the below steps.

Click Export.

In Cloud Storage export location click Browse and choose your Storage bucket and enter a name for your backup.

Select Backup Location

Click Select.

In Format choose SQL.

Click Show advanced options and select the database you want to export.

Export Data To Cloud Storage

Click Export.

Once the export is completed you will have your database backup in your Cloud Storage bucket.

Tags: Cloud SQLCompute EngineGoogle Cloud Platform
Share3Tweet2SendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Ai Trainer

How to Become an AI Trainer: Skills, Salary, and Career Opportunities

September 15, 2023

10 Best AI Song Generator in 2023 (Free and Paid)

Microsoft Editor vs Grammarly: Which is the Best Grammar Checker?

5 Best Fantasy Minecraft Servers in 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

Create High Quality AI Cover Song with Covers AI

Popular Articles

Free Linux Cloud Server

Top 5 Free Linux Cloud Servers to Host Your Website

September 8, 2023

AI Sketch: Turn Your Sketches into Photorealistic Images in Seconds

How to Make Money with AI: A Step-by-Step Guide

18+ Best Free NSFW AI Generators of 2023

7 Best Deepswap AI Free Online Tools to Create FaceSwap Videos and Photos

Best 10 Instagram Video Downloader Apps and Websites for 2023

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.