This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |