Skip to content

Commit

Permalink
Add support for running restore locally, on a mac :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
aforward committed Jul 20, 2018
1 parent 5137bca commit eef6db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/tasks/bin/db.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ defmodule Mix.Tasks.Version.Bin.Db do
#!/bin/bash
DBNAME=#{dbname}
BACKUP_ROOT=#{backup_root}
BACKUP_ROOT=${BACKUP_ROOT-#{backup_root}}
(cd ${BACKUP_ROOT} && \\
psql -f $(tar zxfv ${DBNAME}.tar.gz))
psql -f $(tar zxfv ${DBNAME}.tar.gz 2>&1 | awk '{print $NF}'))
"""
|> write!("./rel/commands/restore")

Expand Down

0 comments on commit eef6db9

Please sign in to comment.