Commit 25bb6808 authored by Boxiang Sun's avatar Boxiang Sun

peertube: backup fixup

parent 45db0306
......@@ -18,7 +18,7 @@ md5sum = 9eed4136d9d6f8f855b73bbfefa6397c
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
md5sum = 0eec04ffe6d480d9ecec76f96b148618
md5sum = f789217b73552cc58f5db4fd2fd77203
[template-nginx-service]
filename = template-nginx-service.sh.in
......@@ -50,4 +50,4 @@ md5sum = f1f82101258de19068262b7213fc478b
[template-peertube-backup-script]
filename = template-peertube-backup.sh.in
md5sum = ce4f459a5a9383cb1b647c7ff5aca8b7
md5sum = 5dd471d958e68ce4e14cccc090ef23ce
......@@ -176,6 +176,7 @@ output = ${directory:srv}/exporter.exclude
recipe = collective.recipe.template
input = inline: #!/bin/sh
${postgresql:bin}/pg_restore -h ${postgresql:pgdata-directory} -c -U peertube -d peertube_prod ${directory:peertube_directory}/peertube_prod-dump.db
cp -r $${directory:peertube_directory}/postgresql_back $${directory:srv}/postgresql
output = ${directory:srv}/runner-import-restore
mode = 755
......
......@@ -5,3 +5,5 @@ $${postgresql:bin}/pg_dump -h $${postgresql:pgdata-directory} -U $${postgresql:s
# 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
cp -r $${directory:srv}/postgresql $${directory:peertube_directory}/postgresql_back
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