[Spacewalk-list] postgres DB backup question
Florian Panzer - ratiokontakt GmbH
fp at ratiokontakt.de
Tue Feb 27 13:51:06 UTC 2018
Am 27.02.2018 um 14:37 schrieb Paschedag, Robert:
> This is how I backup my spacewalk db
>
> [...]
Over here we roll like so:
[root at spacewalk ~]# cat /usr/local/bin/spacewalk-db-backup.sh
#!/bin/bash
/usr/bin/spacewalk-dump-schema --to=postgresql | gzip >
/postgresqlbackups/dump-$(date +%s).sql.gz
find /postgresqlbackups -type f -mtime +10 -delete
[root at spacewalk ~]# crontab -l
# datenbank-backup
0 4 * * * /usr/local/bin/spacewalk-db-backup.sh > /dev/null
...and the whole filesystem is backed up via bacula on a regular basis.
--
Für weitergehende Fragen stehen wir Ihnen gerne zur Verfügung.
Mit partnerschaftlichen Grüßen
Florian Panzer
Chief Technical Officer
AWS Certified Solutions Architect - Associate
--------------------------------------------------------
ratiokontakt GmbH
Biegenhofstr. 13
96103 Hallstadt
Telefon: +49 (0) 951 9 35 35 - 0
Telefax: +49 (0) 951 9 35 35 - 902
Internet: www.ratiokontakt.de
Geschäftsführer: Dr. Nils Kaufmann, Stefan Kraft
Amtsgericht Bamberg - HRB 3757
--------------------------------------------------------
ratiokontakt ist zertifiziert nach DIN ISO/IEC 27001
More information about the Spacewalk-list
mailing list