I want to restore the a file deleted by my customer , i have a snapshot of that day ,how can i restore the file without creating new vm and coping the file,Is it possible to restore a single 10 mb file from the snapshot.


You can restore a snapshot of a non-boot persistent disk to a new persistent disk. The new persistent disk must be at least the same size as the original source disk for the snapshot (you must restore the disk there is no way to access the data directly from the snapshot).

Once you have the disk you can attach it to another instance to access the files

| improve this answer | |
  • How can i check same with the linux ? – manish sawant Oct 18 '19 at 7:12

Unfortunately, this is not possible. You're going to have to go over the process of creating an instance in order to fetch your desired files.

This would defeat the purpose of snapshots in the first place, which are not meant to be tampered with. Cloud Storage, Filestore or another kind of "hot" storage are the right products for keeping files that need to be accessed on the spot.

| improve this answer | |
  • Then how do we can restore a single deleted file in GCP? – manish sawant Oct 11 '19 at 10:45
  • stackoverflow.com/a/53308237/11480343 skip step 1 – mickey Oct 11 '19 at 11:24
  • This answer is technically correct. However, this does not answer the question of how to restore a file from a snapshot, which is fairly easy to do. – John Hanley Oct 14 '19 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.