Skip to content
Snippets Groups Projects
Commit 070f23d6 authored by t6's avatar t6
Browse files

removed debug code from greenlight-postgres-backup

parent 9191d2d9
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
# backup the greenlight postgres dbs
# (c) 2020-2038 cc-by-nc-sa wotwot
set -x
now=`date +%Y%m%d-%H%M`
host=`hostname -s`
file="postgres-${host}-${now}.sql"
......@@ -20,7 +19,7 @@ cd /root/greenlight || \
exit
}
docker ps || exit
#docker ps || exit
docker exec -u postgres ${dbname} pg_dumpall > ${file}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment