Postgresql backups
gilgamezh opened this issue · 6 comments
gilgamezh commented
configure a k8s job to backup postgresql databases
gilgamezh commented
handled by azure https://docs.microsoft.com/en-us/azure/postgresql/concepts-backup
facundobatista commented
Pero este backup de Azure no es cuando usamos el servicio de ellos de DB?
Si no me equivoco, en asoc_members estamos usando un postgresql en una imagen de docker nuestra... por las dudas abrí este issue: PyAr/asoc_members#87
gilgamezh commented
nos fuimos del pgsql de azure. asi que tenemos que configurar un job para bkps.
gilgamezh commented
Ya dejé corriendo un job que hace bkp 2 veces por dia.
https://github.com/PyAr/pyar_infra/pull/34/files
queda pendiente hacer algo para eliminar los viejos
gilgamezh commented
me falta testear el restore
gilgamezh commented
tested locally
restored with
pg_restore -U postgres -d asoc_members /tmp/backupOn2019-09-15-19-17_asoc_members.dump
asoc_members=# select * from events_event
asoc_members-# ;
id | created | modified | name | commission | start_date | place | category | close | changed_by_id | created_by_id
----+-------------------------------+-------------------------------+--------------------------------------------+------------+------------+-------------------------------------------------+----------+-------+---------------+---------------
2 | 2019-06-30 15:38:55.783855+00 | 2019-06-30 15:45:10.537993+00 | PyCon Argentina 2019 | 5.00 | 2019-12-04 | Centro Cultural General San Martín, CABA | PCo | f | 2 | 2
1 | 2019-06-30 14:47:58.038402+00 | 2019-08-01 15:17:26.614243+00 | PyData Córdoba 2019 | 5.00 | 2019-09-27 | UTN Córdoba | Con | f | 2 | 2
3 | 2019-08-02 13:12:56.28028+00 | 2019-08-12 12:19:00.683158+00 | Taller Argentino de Computación Científica | 8.00 | 2019-12-05 | Universidad Nacional de San Luis | Con | t | 2 | 2
4 | 2019-08-29 13:08:21.18331+00 | 2019-08-29 13:08:21.183337+00 | PyDay Rosario 2019 | 5.00 | 2019-09-14 | Av. Pellegrini 250 (Facultad de Ingeniería UNR) | PD | f | 2 | 2
(4 rows)