anurag
anurag

Reputation: 630

Creating VM snapshot in GCP is not snapshotting the home folder

I am trying to create a backup snapshot of my GCP instance. However, every-time I create a snapshot and boot it up, the /home/ folder contents seem to be missing from my original instance.

Any idea why this is happening and how to fix it?

Upvotes: 0

Views: 268

Answers (1)

miguelfrancisco85
miguelfrancisco85

Reputation: 542

Could you give more details about the steps that you follow, to create the instance from the snapshot.

In my case I've used this commands and he have my home on the new instance:

gcloud compute --project=your-project-name disks snapshot disk_name_of_your_instance --zone=zone_of_your_instance --snapshot-names=name_of_your_snapshot

gcloud compute --project your-project-name disks create "your-new-instance" --size "10" --zone "us-central1-c" --source-snapshot "name_of_your_snapshot" --type "pd-standard"

gcloud beta compute --project=your-project-name instances create your-new-instance --zone=us-central1-c --machine-type=n1-standard-1 --subnet=your-subnet 

Upvotes: 1

Related Questions