Skip to content

Instantly share code, notes, and snippets.

View markschwarz's full-sized avatar

Mark Schwarz markschwarz

  • Square Root
  • Austin, TX, USA
View GitHub Profile
@mkw
mkw / pg_copy.sh
Last active September 26, 2016 02:34
Script to copy part or all of PostgreSQL databases between different connections
#!/usr/bin/env bash
# MIT License
#
# Copyright (c) 2016 Michael K. Werle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell