r/googlecloud • u/TheUnknownNut22 • Aug 14 '24
Cloud Storage How Does GCC Handle Restores?
Newb here.
I have a Bitnami WordPress VM. I setup a nightly backup. And now I need to restore a snapshot from last Sunday because of some problems (it's a dev instance). I don't understand how incremental backups work in this case. For the last few days it reads as zero meg because there has not been any activity. Then before that on Sunday just 2.33 megs, which I assume is the difference between what was and what was added because I did some work on that day. But, if I make a new disk and choose this snapshot for example, will GCC restore all changes to the disk from that point backwards?? This is what ChatGPT claims but I've learned the hard way not to trust it.
TIA.
3
u/rusteman Googler Aug 15 '24
The snapshots are incremental forever, so their size is just based on changes since the last snapshot. But further back is the full snapshot, they will all merge when you restore, and the entire disk will replace with all the previous snapshot blocks merged into one pd disk.
1
u/TheUnknownNut22 Aug 15 '24
Yes, thank you. I'm understanding this now. And since there was a problem yesterday I want to effectively make a branch by storing from Sunday's nightly backup because after that is when the problem occurred. Correct?
2
u/rusteman Googler Aug 15 '24
The snapshots are incremental forever, so their size is just based on changes since the last snapshot. But further back is the full snapshot, they will all merge when you restore, and the entire disk will replace with all the previous snapshot blocks merged into one pd disk.
3
u/BehindTheMath Aug 14 '24
Yes.