Skip to content

Instantly share code, notes, and snippets.

@splummer
splummer / gist:3164330
Created July 23, 2012 15:47
partitioing kickstart snippet
# Determine how many drives we have
#set $bootsize = int($getvar("bootsize", 200))
#set $swapsize = int($getVar("swapsize", 4096))
#set $rootsize = int($getVar("rootsize", 4096))
# Calculate the sector start/stop for each partition
#set $offset = 64
#set $bootstart_s = str($offset) + "s"
#set $bootend = (($bootsize * 1024 * 1024) /512) + offset
#set $bootend_s = str($bootend) + "s"
#!/bin/sh
PSQL=/usr/bin/psql
DUMP=/usr/bin/pg_dump
DUMPALL=/usr/bin/pg_dumpall
PREFIX=`date +%j`
BACKUP_DIR=/var/lib/pgsql/backups
HOST=/var/lib/pgsql/data/
USERNAME=postgres