Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql backups #22

Closed
gilgamezh opened this issue May 28, 2019 · 6 comments
Closed

Postgresql backups #22

gilgamezh opened this issue May 28, 2019 · 6 comments
Assignees

Comments

@gilgamezh
Copy link
Contributor

configure a k8s job to backup postgresql databases

@gilgamezh
Copy link
Contributor Author

@facundobatista
Copy link
Member

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 gilgamezh reopened this Sep 5, 2019
@gilgamezh
Copy link
Contributor Author

nos fuimos del pgsql de azure. asi que tenemos que configurar un job para bkps.

@gilgamezh
Copy link
Contributor Author

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
Copy link
Contributor Author

me falta testear el restore

@gilgamezh
Copy link
Contributor Author

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)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants