How to create and rotate Automatic Snapshot?

前端 未结 10 2067
梦如初夏
梦如初夏 2020-12-14 08:33

On Compute Engine we can do Snapshots, which are basically backups. Could you try to figure out how we could create a script to do automated snapshots every day and keep lik

10条回答
  •  青春惊慌失措
    2020-12-14 09:17

    Update Google Cloud has scheduled backups that can be configured per disk. See Creating scheduled snapshots for persistent disk in the Google Cloud documentation.

    Original Answer

    Documentation is pretty clear about how to do it:

    gcloud compute disks snapshot DISK
    

    Note, that

    Snapshots are always created based on the last successful snapshot taken

    And before you will remove any of your snapshots -- take a look on that diagram: enter image description here

    More information about API.

提交回复
热议问题