Automatic Snapshot

2,334 views
Skip to first unread message

Montassar Dridi

unread,
Jan 9, 2017, 4:25:16 PM1/9/17
to gce-discussion
Hello 

Is there a way to create automated compute engine snapshots every day at google cloud. 

Carlos (Cloud Platform Support)

unread,
Jan 9, 2017, 7:06:19 PM1/9/17
to gce-discussion
Hi Montassar,

To automate snapshots, you can use gcloud within a shell script. You can then schedule the script so it can be run automatically by cron job.

Montassar Dridi

unread,
Jan 9, 2017, 7:13:52 PM1/9/17
to gce-discussion
thanks carlos

yeah I saw that script  and many other, but I just wanted to know if there is aw way to accomplish it through Google Cloud platform, or if there is an official script opened sourced by Google.

again I appreciate your help

Carlos (Cloud Platform Support)

unread,
Jan 10, 2017, 10:01:44 AM1/10/17
to gce-discussion
Hi Montassar,

At the moment there is no direct way to achieve this.  We do not have an official script but there are plenty of examples written by the community. There is a feature request in order to have this functionality.



Montassar Dridi

unread,
Jan 10, 2017, 10:22:04 AM1/10/17
to gce-discussion
thanks again for your help Carlos

I have another question around the same topic. The disk that I'm trying to take a snapshot of, is there a way to have a copy of it on my local machine(desktop), so I can use the data inside it in another project?

Carlos (Cloud Platform Support)

unread,
Jan 10, 2017, 2:52:47 PM1/10/17
to gce-discussion
GCE snapshots are only useful within your Cloud Projects. If you need to to export a disk to another project, an easy way is to create an image from it. You can then use this beta feature to share the image. 

José Antonio Moyano Acosta

unread,
Aug 6, 2018, 9:07:38 AM8/6/18
to gce-discussion
Hi Montassar.

And if I need to create a backup on Sundays? It's possible? Thanks!

Información Básica sobre Protección de Datos

  • Responsable del tratamiento: The Cloud Network, S.L.
  • Finalidad del tratamiento: Responder a su consulta/solicitud/sugerencia y gestionar el tipo de relación que mantiene con nosotros.
  • Legitimación del tratamiento: Interés legítimo y/o consentimiento del interesado.
  • Destinatarios: No se comunicarán sus datos a terceros. La empresa utiliza servicios de alojamiento externo, con Google Cloud, que conlleva una transferencia internacional de datos, que se encuentra al amparo del acuerdo EU-US Privacy Shield, información disponible en www.privacyshield.gov
  • Derechos: Tiene derecho a acceder, rectificar y suprimir los datos, así como otros derechos, como se explica en la información adicional.
  • Información adicional: Puede consultar la información adicional y detallada sobre Protección de Datos en nuestra página web: https://www.whitebite.es/ (Política de Privacidad).


En el caso de que no de que no desee recibir nuestros mensajes de correo electrónico, puede solicitarlo en lo...@whitebite.es
 

Yui (Google Cloud Support)

unread,
Aug 6, 2018, 3:41:43 PM8/6/18
to gce-discussion
You can use the gcloud compute disks snapshot command to create your backups within a script. Here is an example. Now regarding the automation of running the script, you will have to run a cron job. This will also give you an idea of how cron jobs function and here are examples that I found that might be of assistance.
Reply all
Reply to author
Forward
0 new messages