From 1d5cf2cf05d24e4f80ad7c69b9b1f9829f2e3af8 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Mon, 5 Feb 2024 09:58:46 +0100 Subject: [PATCH] Add comment how to restore the backup file --- server/test_objectives_migrations.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/test_objectives_migrations.sh b/server/test_objectives_migrations.sh index 90e17887..a206a701 100755 --- a/server/test_objectives_migrations.sh +++ b/server/test_objectives_migrations.sh @@ -6,3 +6,7 @@ python manage.py migrate_objectives_to_content pg_dump -Fc --no-acl -h localhost -U skillbox skillbox > latest-migrated-objectives.dump #python manage.py migrate_objective_snapshots #pg_dump -Fc --no-acl -h localhost -U skillbox skillbox > latest-migrated-objectives-and-snapshots.dump + + +# Use this command to restore the database from the dump: +#pg_restore --verbose --clean --no-acl --no-owner -h localhost -U skillbox -d skillbox latest-migrated-objectives.dump