#!/usr/bin/bash FILENAME=b_list-`/usr/xpg4/bin/date +%Y%m%d`.sql.bz2 cd /home/myuser/dumps /opt/local/bin/pg_dump -U db_username db_name | /usr/bin/bzip2 > $FILENAME /usr/bin/scp $FILENAME me@strongspace:/my/backup/dir/
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Postgresql dump SS archive script (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Mount Strongspace to a folde... in backup strongspace ubuntu fuse mount folder
» Upload your Flickr photos to... in ruby backup strongspace flickr
» Daily rotated backups to Str... in backup strongspace
» Backup from textdrive to str... in mysql svn backup strongspace
» Backing up subversion reposi... in subversion backup
» Make a backup of all tables ... in mysql shell backup
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails