Search code examples
google-cloud-platformgoogle-cloud-datastoregoogle-cloud-storage

google cloud datastore making backups


I am new to Google Cloud and I am having a hard time figuring out whether it is making backups of the data or not? How can I check and if it is not making back-up, does anyone have any idea how I can look into making backups? Does it have anything to do with buckets? Also I am having a difficult time understanding what the link between buckets, Datastore and storage is. Also, in the Storage section there is a file that is created every day that ends in the extension "Activity.backup_info." How do you open this file ? I have tried to use notepad but it did not work.


Solution

  • Being a managed database, you are not responsible for high availability. It handles sharding and replication for you.

    However, if you wish to take backups of your data for logical recovery activities (eg restore your data to a previous point in time because you changed it inappropriately) you can use the built in export and import functions. These are documented here. At the highest level you have gcloud commands called:

    • gcloud datastore export
    • gcloud datastore import

    That export / import your data to/from Google Cloud Storage (GCS). These functions are also available through API meaning that you can automate these tasks (or schedule them based on time).