mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-01 19:16:17 -04:00
Add backup creation
This commit is contained in:
parent
49f51543fd
commit
acf0c19fa9
2 changed files with 40 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eou pipefail
|
||||
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" -c "CREATE SCHEMA IF NOT EXISTS backup"
|
||||
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channels.sql
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/videos.sql
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channel_videos.sql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue