aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-26 16:12:34 +0200
committerGitHub <noreply@github.com>2017-04-26 16:12:34 +0200
commit4f7830b5956ca7aa100b8daa81affbf674262f85 (patch)
tree78d48e65a3efa7aebbb4297cce9e6863741de60b /scripts/restore
parented08bd31ad591bbae6fbd66f910ccf0d129738ef (diff)
downloadmastodon_ynh-4f7830b5956ca7aa100b8daa81affbf674262f85.tar.gz
mastodon_ynh-4f7830b5956ca7aa100b8daa81affbf674262f85.tar.bz2
mastodon_ynh-4f7830b5956ca7aa100b8daa81affbf674262f85.zip
[fix] PG restore
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore
index 65a4af8..7820e04 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -90,7 +90,7 @@ sudo cp $YNH_APP_BACKUP_DIR/mastodon_db.sql $final_path
ynh_psql_create_db_without_password "$app"
sudo systemctl restart postgresql
sudo su - postgres <<COMMANDS
-pg_dump --role=mastodon -U postgres --no-password mastodon < $final_path/mastodon_db.sql
+pg_restore --role=mastodon -U postgres --no-password < $final_path/mastodon_db.sql
COMMANDS
# Delete dump after restore