Commit a9479f62 authored by Boxiang Sun's avatar Boxiang Sun

peertube: Backup update

parent 46ca55f2
......@@ -188,7 +188,7 @@ output = $${directory:srv}/exporter.exclude
[peertube-database-resiliency-after-import-script]
recipe = collective.recipe.template
input = inline: #!/bin/sh
$${postgresql:bin}/pg_restore -c -C -d postgres $${directory:peertube_directory}//peertube_prod-dump.db
$${postgresql:bin}/pg_restore -h $${postgresql:pgdata-directory} -c -U peertube -d peertube_prod $${directory:peertube_directory}/peertube_prod-dump.db
output = $${directory:srv}/runner-import-restore
mode = 755
......
echo "Hello Peertube"
# Dump the databse
$${postgresql:bin}/pg_dump -Fc peertube_prod > $${directory:peertube_directory}/peertube_prod-dump.db
\ No newline at end of file
$${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} --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