How to effectively delete datastore backup files in GCS

46 views
Skip to first unread message

husayt

unread,
Feb 12, 2016, 7:40:40 PM2/12/16
to Google App Engine
Currently It takes over a day to delete datastore files
I run this command:

gsutil -q -m rm -r gs://backup/2015/07/

But this is very time consuming, I wonder isn't there a better way to delete so many files?

Stefano Ciccarelli

unread,
Feb 13, 2016, 1:49:35 AM2/13/16
to Google App Engine
If you have a bucket dedicated to your backups you can set objects lifecycle so that file are automatically deleted (we do this).

https://cloud.google.com/storage/docs/lifecycle

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/00253485-c180-4d17-8e26-368d0ade6c82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Stefano Ciccarelli 
GAE Application Division 
/ Director 
stefano.c...@mmbsoftware.it 

M.M.B. s.r.l. 
via Granarolo, 177/7 - 48018 Faenza (RA) - Italy 
tel. +39.0546.637711 - fax +39.0546.46077 
www.mmbsoftware.it - in...@mmbsoftware.it

Le informazioni contenute in questa comunicazione sono riservate e destinate esclusivamente alla/e persona/e o all'ente sopra indicati. E' vietato ai soggetti diversi dai destinatari qualsiasi uso, copia, diffusione di quanto in esso contenuto sia ai sensi dell'art. 616 c.p., sia ai sensi del DL n. 196/03. Se questa comunicazione Vi e' pervenuta per errore, Vi preghiamo di rispondere a questa e-mail e successivamente cancellarla dal Vostro sistema.
Reply all
Reply to author
Forward
0 new messages