Skip to content

Instantly share code, notes, and snippets.

View tboulogne's full-sized avatar

Thierry BOULOGNE tboulogne

View GitHub Profile
@tboulogne
tboulogne / postgres_manager.py
Created October 29, 2019 12:07 — forked from valferon/postgres_manager.py
Python script to take care of postgres backup and restore of data
#!/usr/bin/python3
import argparse
import logging
import subprocess
import os
import tempfile
from tempfile import mkstemp
import configparser
import gzip