aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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