Skip to content

Instantly share code, notes, and snippets.

View stefanprodan's full-sized avatar
🎯
Hacking on @fluxcd and timoni.sh

Stefan Prodan stefanprodan

🎯
Hacking on @fluxcd and timoni.sh
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stefanprodan on github.
  • I am stefanprodan (https://keybase.io/stefanprodan) on keybase.
  • I have a public key ASBAfWbNJNEZd2c_Ysg8rLfwbLtPMHEgDj67cWvUIshY-Ao

To claim this, I am signing this object:

@stefanprodan
stefanprodan / Install-Postgres.psm1
Created October 20, 2014 12:04
PostgreSQL unattended install PowerShell module
#################################################################################
##
## PostgreSQL unattended install
## Author: Stefan Prodan
## Date : 16 Oct 2014
## Company: VeriTech.io
################################################################################
Function Install-Postgres
{
@stefanprodan
stefanprodan / Backup-Postgres.ps1
Last active March 22, 2023 04:28
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';