Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
25bb6808
Commit
25bb6808
authored
Nov 21, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: backup fixup
parent
45db0306
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+2
-2
software/peertube/instance-peertube.cfg.in
software/peertube/instance-peertube.cfg.in
+1
-0
software/peertube/template-peertube-backup.sh.in
software/peertube/template-peertube-backup.sh.in
+2
-0
No files found.
software/peertube/buildout.hash.cfg
View file @
25bb6808
...
...
@@ -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
software/peertube/instance-peertube.cfg.in
View file @
25bb6808
...
...
@@ -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
...
...
software/peertube/template-peertube-backup.sh.in
View file @
25bb6808
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment