Commit aeec080b authored by Riccardo Padovani's avatar Riccardo Padovani

Updated scripts

parent 14748892
File mode changed from 100644 to 100755
......@@ -35,15 +35,11 @@ dump_output=${2}
dropdb "$local_db"
createdb "$local_db"
# Work in /tmp
cd /tmp
# If there is yesterday backup, then delete it
if [ -f "$dump_output" ]; then
rm -f "$dump_output"
fi
# Extract the file and import in psql
tar -xOvf "$dump_input" | psql "$local_db"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment