Add script to dump local database

This commit is contained in:
Ramon Wenger 2023-08-15 08:59:29 +02:00
parent e5f0b061c4
commit c7c53d8a38
2 changed files with 3 additions and 1 deletions

2
bin/dump_local_database.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
pg_dump -Fc --no-acl --no-owner -h localhost -U skillbox skillbox_import > ../local.dump

View File

@ -10,7 +10,7 @@ User.objects.filter(is_superuser=False).delete()
Make local dump of database Make local dump of database
``` ```
./scripts/dump_local_database.sh ./bin/dump_local_database.sh
``` ```
Copy local dump to s3 bucket Copy local dump to s3 bucket