Skip to content

Instantly share code, notes, and snippets.

View seuf's full-sized avatar

Thierry Sallé seuf

View GitHub Profile
@seuf
seuf / docker info
Created January 19, 2021 12:48
k3d server crash
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
Server:
Containers: 2
Running: 1
@seuf
seuf / pg_dump_zabbix_no_history.sh
Created July 17, 2017 11:42
pg_dump_zabbix_no_history.sh
#!/bin/sh
today=$(date "+%Y-%m-%d")
last_week=$(date -d "1 weeks ago" "+%Y-%m-%d")
data_dir="/tmp"
data_file="zabbix-$today.sql"
lastweek_file="zabbix-$last_week.sql"
echo "Dumping zabbix databse into $data_dir/$data_file"
pg_dump -h localhost -d zabbix -f $data_dir/$data_file --exclude-table-data=history* --exclude-table-data=trends* --exclude-table-data=events --exclude-table-data=alerts --exclude-table-data=sessions --exclude-table-data=auditlog --exclude-table-data=acknowledges