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
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
HongzheWang
slapos
Commits
81ec25f5
Commit
81ec25f5
authored
Jun 17, 2022
by
HongzheWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matomo-tutorial:Add regular backup
parent
0054135b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
software/matomo-tutorial/buildout.hash.cfg
software/matomo-tutorial/buildout.hash.cfg
+1
-1
software/matomo-tutorial/matomo-instance.cfg.in
software/matomo-tutorial/matomo-instance.cfg.in
+7
-0
software/matomo-tutorial/software.cfg
software/matomo-tutorial/software.cfg
+1
-1
No files found.
software/matomo-tutorial/buildout.hash.cfg
View file @
81ec25f5
...
...
@@ -15,7 +15,7 @@
[template-matomo-instance]
filename = matomo-instance.cfg.in
md5sum =
2183607e3c22bc57d3898742ea0c1ef5
md5sum =
9ff98282480b9edf9af75fca5da5f349
[template-matomo-backup.sh]
filename = matomo-backup.sh.in
...
...
software/matomo-tutorial/matomo-instance.cfg.in
View file @
81ec25f5
...
...
@@ -5,6 +5,13 @@ dir-backup = ${directory:backup}
find-bin = {{ findutils_location }}
diff-bin = {{ diffutils_location }}
[matomo-backup-cron]
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
name = matomo-backup
frequency = 0 0 * * *
command = ${matomo-backup.sh:output}
[matomo-backup.sh]
recipe = slapos.recipe.template:jinja2
url = {{ matomo_backup_sh }}
...
...
software/matomo-tutorial/software.cfg
View file @
81ec25f5
...
...
@@ -32,7 +32,7 @@ archive-root = matomo
# Without it the instance-matomo.cfg file will not be executed
[custom-application-deployment]
path = ${template-matomo-instance:output}
part-list = matomo-backup.sh
part-list = matomo-backup.sh
matomo-backup-cron
db-name = matomo
db-user = matomo
db-password = 12345678
...
...
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