#!/usr/bin/env ruby begin require "pgsync" PgSync::Client.new(ARGV).perform rescue PgSync::Error => e abort e.message rescue Interrupt abort end