npotorino / zabbix-backup

Backup script for Zabbix configuration data (MySQL/PostgreSQL)
MIT License
67 stars 30 forks source link

zabbix dump add custom format (pg), stdout dump #4

Closed gullevek closed 2 years ago

gullevek commented 3 years ago

Add print to stdout instead to file when using - with -o option. This will also set quiet to yes This will ignore any compression set, this will also ignore any number for keep backups. New option -C (format custom for postgresql) can be used

For PostgreSQL dumps: -C: Add format type custom for dumps

Example: zabbix-dump -t psql -i -C -o - For dumping with postgresql, ignore additional tables, set format custom and print to stdout

gullevek commented 2 years ago

I will test this once I have my Zabbix 6 test setup running

On Fri, Aug 5, 2022 at 9:01 PM Tomas Hermanek @.***> wrote:

Please don't forget test you also backup DB triggers, it is for first time in zabbix and also new changelog table.

— Reply to this email directly, view it on GitHub https://github.com/npotorino/zabbix-backup/pull/4#issuecomment-1206367653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGQ6NOGQDLAEXKP4E5VMATVXT7ARANCNFSM5B53DVCA . You are receiving this because you authored the thread.Message ID: @.***>

-- Clemens Schwaighofer "Freiheit ist immer die Freiheit der Andersdenkenden, sich zu äußern.", Rosa von Luxemburg "Malo Periculosam Libertatem Quam Quietum Servitium" "The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently", Friedrich Nietzsche "Per Adura ad Astra" @. / @. http://g http://percival.namespace.at/~gullevek/ullevek.org/ http://ullevek.org/