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
Thomas Gambier
slapos
Commits
d406137a
Commit
d406137a
authored
Nov 26, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed backup path
parent
9ebe821e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
slapos/recipe/postgres/__init__.py
slapos/recipe/postgres/__init__.py
+7
-5
stack/lapp/postgres/instance-postgres.cfg.in
stack/lapp/postgres/instance-postgres.cfg.in
+1
-1
No files found.
slapos/recipe/postgres/__init__.py
View file @
d406137a
...
@@ -209,7 +209,6 @@ class ExportRecipe(GenericBaseRecipe):
...
@@ -209,7 +209,6 @@ class ExportRecipe(GenericBaseRecipe):
ret
=
[]
ret
=
[]
if
not
os
.
path
.
exists
(
pgdata
):
wrapper
=
self
.
options
[
'wrapper'
]
wrapper
=
self
.
options
[
'wrapper'
]
self
.
createBackupScript
(
wrapper
)
self
.
createBackupScript
(
wrapper
)
ret
.
append
(
wrapper
)
ret
.
append
(
wrapper
)
...
@@ -224,7 +223,10 @@ class ExportRecipe(GenericBaseRecipe):
...
@@ -224,7 +223,10 @@ class ExportRecipe(GenericBaseRecipe):
content
=
textwrap
.
dedent
(
"""
\
content
=
textwrap
.
dedent
(
"""
\
#!/bin/sh
#!/bin/sh
umask 077
umask 077
%(bin)s/pg_dump -h %(pgdata-directory)s -f %(backup-directory)s/backup.sql %(dbname)s
%(bin)s/pg_dump
\
\
-h %(pgdata-directory)s
\
\
-f %(backup-directory)s/backup.sql
\
\
%(dbname)s
"""
%
self
.
options
)
"""
%
self
.
options
)
self
.
createExecutable
(
wrapper
,
content
=
content
)
self
.
createExecutable
(
wrapper
,
content
=
content
)
...
...
stack/lapp/postgres/instance-postgres.cfg.in
View file @
d406137a
...
@@ -177,7 +177,7 @@ dbname = db
...
@@ -177,7 +177,7 @@ dbname = db
ip = $${slap-network-information:local-ipv4}
ip = $${slap-network-information:local-ipv4}
# pgdata_directory is created by initdb, and should not exist beforehand.
# pgdata_directory is created by initdb, and should not exist beforehand.
pgdata-directory = $${rootdirectory:var}/data
pgdata-directory = $${rootdirectory:var}/data
backup-directory = $${basedirectory:backup}
backup-directory = $${basedirectory:backup}
/postgres
services = $${basedirectory:services}
services = $${basedirectory:services}
bin = $${rootdirectory:bin}
bin = $${rootdirectory:bin}
...
...
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