Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
e6b144ba
Commit
e6b144ba
authored
May 05, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create configuration understandable by TIDStorage.
parent
4df75b37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
+3
-3
No files found.
slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
View file @
e6b144ba
...
...
@@ -551,19 +551,19 @@ class Recipe(BaseSlapRecipe):
"""Install TidStorage with all required backup tools
known_tid_storage_identifier_dict is a dictionary of:
((
ip, port
), storagename): (filestorage path, url for serialize)
((
(ip, port),
), storagename): (filestorage path, url for serialize)
url for serialize will be merged with access_url by internal tidstorage
"""
backup_base_path
=
self
.
createBackupDirectory
(
'zodb'
)
# it is time to fill known_tid_storage_identifier_dict with backup
# destination
for
k
,
v
in
known_tid_storage_identifier_dict
.
iteritems
():
for
k
,
v
in
known_tid_storage_identifier_dict
.
copy
().
iteritems
():
# generate unique name for each backup
name
=
'_'
.
join
([
'_'
.
join
([
str
(
q
)
for
q
in
k
[
0
]]),
k
[
1
]])
destination
=
os
.
path
.
join
(
backup_base_path
,
name
)
self
.
_createDirectory
(
destination
)
known_tid_storage_identifier_dict
[
k
]
=
(
v
[
0
],
destination
,
v
[
1
])
known_tid_storage_identifier_dict
[
str
(
k
)
]
=
(
v
[
0
],
destination
,
v
[
1
])
logfile
=
os
.
path
.
join
(
self
.
log_directory
,
'tidstorage.log'
)
pidfile
=
os
.
path
.
join
(
self
.
run_directory
,
'tidstorage.pid'
)
statusfile
=
os
.
path
.
join
(
self
.
log_directory
,
'tidstorage.tid'
)
...
...
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