#!/bin/bash set -e echo `date` "Copying $1 to ../wal/$2" >> /tmp/archive-command.txt mkdir -p ../wal exec cp "$1" "../wal/$2"