Application consistent backup for GCP Linux VMs
To take an application consistent snapshot in your GCP environment, first prepare your guest environment by deploying custom pre and post-scripts files. These files are shell script files that run automatically before and after the snapshot operation.
Use the pre and post-scripts for operations like:
- Stop applications or operating system processes running on the VM that write data to the disk.
- Flush the buffers. You can use whichever tool is available for your application.
As per the GCP guidelines, all these script files must be copied to all Linux VMs that you want to protect with application consistency.
NOTE: Application consistency will be guaranteed by the behavior of your pre and post-custom scripts and not by the snapshot operation itself.
|