Commit 45db0306 authored by Boxiang Sun's avatar Boxiang Sun

peertube: backup fixup

parent 9b94e62e
Pipeline #24933 passed with stage
in 0 seconds
...@@ -50,4 +50,4 @@ md5sum = f1f82101258de19068262b7213fc478b ...@@ -50,4 +50,4 @@ md5sum = f1f82101258de19068262b7213fc478b
[template-peertube-backup-script] [template-peertube-backup-script]
filename = template-peertube-backup.sh.in filename = template-peertube-backup.sh.in
md5sum = defe333fb5bf799cfe7a77e0f17e35ca md5sum = ce4f459a5a9383cb1b647c7ff5aca8b7
...@@ -2,3 +2,6 @@ echo "Hello Peertube" ...@@ -2,3 +2,6 @@ echo "Hello Peertube"
# Dump the databse # Dump the databse
$${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:superuser} -Fc peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.db $${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:superuser} -Fc peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.db
# For test the database contains expected content
$${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:superuser} --column-inserts --data-only --table=user peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.sql
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment