|
|
|
@ -3,11 +3,11 @@ data:
|
|
|
|
postgres_backup.sh: |
|
|
|
|
postgres_backup.sh: |
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
DEBUG_LOG="/tmp/pg_backup_`date +%F`.log"
|
|
|
|
echo "Plz check DEBUG_LOG for debugging purpose. EVERY output will be redirected!"
|
|
|
|
echo "Plz check $DEBUG_LOG for debugging purpose. EVERY output will be redirected!"
|
|
|
|
|
|
|
|
# fgoerz DEV-1029
|
|
|
|
# fgoerz DEV-1029
|
|
|
|
# pipe all output to file for debugging purpose
|
|
|
|
# pipe all output to file for debugging purpose
|
|
|
|
exec 2>&1 1>$DEBUG_LOG
|
|
|
|
exec 1>>/tmp/pg_backup_`date +%F`.log
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
|
|
|
|
|
|
|
|
function log
|
|
|
|
function log
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|