#!/bin/sh
DATE=`date +%Y%m%d%H%M%S`
DIR=/backups/pgsql
PG_DUMP=/usr/bin/pg_dump
$PG_DUMP mydatabase | bzip2 > $DIR/mydatabase_$DATE.sql.bz2
find $DIR -mtime +7 -exec rm {} \;
Page Updates |
---|
RetroPie Arcade |
Customize New Linux Install |
Cisco CCNA Study :: Home Lab Notes |
PostgreSQL Backup Script |
Generate new Factorio map |
Recent Articles |
---|
Debug a Linux Kernel in QEMU |
Install xfce4 on Debian |
Console Blackjack in Perl |
Selenium::WebDriver::Error::UnknownError |
Game of Life in C++ using the SDL2 |
Copyright © 2005 - 2022
GregDonald.com · Contact · Nautical War · CRM12
All Rights Reserved