Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SlapOS Develop
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
SlapOS Develop
Commits
fdcdb743
Commit
fdcdb743
authored
Sep 20, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing argument for repozo and put everything in the same directory.
parent
588c3be1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+4
-12
No files found.
slapos/recipe/erp5/__init__.py
View file @
fdcdb743
...
@@ -829,24 +829,16 @@ SSLCARevocationPath %(ca_crl)s"""
...
@@ -829,24 +829,16 @@ SSLCARevocationPath %(ca_crl)s"""
Add only repozo to cron (e.g. without tidstorage) allowing full
Add only repozo to cron (e.g. without tidstorage) allowing full
and incremental backups.
and incremental backups.
"""
"""
backup_base_path
=
self
.
createBackupDirectory
(
'zodb'
)
backup_path
=
self
.
createBackupDirectory
(
'zodb'
)
full_backup_path
=
os
.
path
.
join
(
backup_base_path
,
'full'
)
self
.
_createDirectory
(
full_backup_path
)
incremental_backup_path
=
os
.
path
.
join
(
backup_base_path
,
'incremental'
)
self
.
_createDirectory
(
incremental_backup_path
)
repozo_cron_path
=
os
.
path
.
join
(
self
.
cron_d
,
'repozo'
)
repozo_cron_path
=
os
.
path
.
join
(
self
.
cron_d
,
'repozo'
)
repozo_cron_file
=
open
(
repozo_cron_path
,
'w'
)
repozo_cron_file
=
open
(
repozo_cron_path
,
'w'
)
try
:
try
:
repozo_cron_file
.
write
(
'''
repozo_cron_file
.
write
(
'''
0 0 * * 0 %(repozo_binary)s -
F -f "%(zodb_root_path)s" -r "%(full_
backup_path)s"
0 0 * * 0 %(repozo_binary)s -
-backup --full --file="%(zodb_root_path)s" --repository="%(
backup_path)s"
0 * * * * %(repozo_binary)s -
f "%(zodb_root_path)s" -r "%(incremental_
backup_path)s"
0 * * * * %(repozo_binary)s -
-backup --file="%(zodb_root_path)s" --repository="%(
backup_path)s"
'''
%
dict
(
repozo_binary
=
self
.
options
[
'repozo_binary'
],
'''
%
dict
(
repozo_binary
=
self
.
options
[
'repozo_binary'
],
zodb_root_path
=
zodb_root_path
,
zodb_root_path
=
zodb_root_path
,
full_backup_path
=
full_backup_path
,
backup_path
=
backup_path
))
incremental_backup_path
=
incremental_backup_path
))
finally
:
finally
:
repozo_cron_file
.
close
()
repozo_cron_file
.
close
()
...
...
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