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
Léo-Paul Géneau
slapos
Commits
ad09e387
Commit
ad09e387
authored
Jun 25, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/backupserver: specify rdiff-backup version in the single place.
parent
e4d46082
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
software/backupserver/agent/software.cfg
software/backupserver/agent/software.cfg
+1
-1
software/backupserver/buildout.hash.cfg
software/backupserver/buildout.hash.cfg
+1
-1
software/backupserver/software.cfg
software/backupserver/software.cfg
+3
-0
software/backupserver/template-backup-script.sh.in
software/backupserver/template-backup-script.sh.in
+2
-2
No files found.
software/backupserver/agent/software.cfg
View file @
ad09e387
...
@@ -3,4 +3,4 @@ extends =
...
@@ -3,4 +3,4 @@ extends =
../software.cfg
../software.cfg
parts =
parts =
rdiff-backup
-1.0.5
rdiff-backup
software/backupserver/buildout.hash.cfg
View file @
ad09e387
...
@@ -26,7 +26,7 @@ md5sum = 851262d7174da868805cb7c8e1ced7c0
...
@@ -26,7 +26,7 @@ md5sum = 851262d7174da868805cb7c8e1ced7c0
[template-backup-script]
[template-backup-script]
filename = template-backup-script.sh.in
filename = template-backup-script.sh.in
md5sum =
3f3286347a7e271e7bfa66e1a840989b
md5sum =
43b92958f34d5ca84e708bace817b971
[template-crontab-line]
[template-crontab-line]
filename = template-crontab-line.in
filename = template-crontab-line.in
...
...
software/backupserver/software.cfg
View file @
ad09e387
...
@@ -30,6 +30,9 @@ parts =
...
@@ -30,6 +30,9 @@ parts =
template-crontab-line
template-crontab-line
slapos-cookbook
slapos-cookbook
[rdiff-backup]
<= rdiff-backup-1.0.5
[rssgen-eggs]
[rssgen-eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
interpreter = python-${:_buildout_section_name_}
interpreter = python-${:_buildout_section_name_}
...
...
software/backupserver/template-backup-script.sh.in
View file @
ad09e387
...
@@ -13,7 +13,7 @@ ${coreutils-output:echo} "Available only if backup succeed." > $${:statistic_log
...
@@ -13,7 +13,7 @@ ${coreutils-output:echo} "Available only if backup succeed." > $${:statistic_log
# set -e
# set -e
cd $${:datadirectory}
cd $${:datadirectory}
${util-linux:location}/bin/flock $${:status_log}.lock \
${util-linux:location}/bin/flock $${:status_log}.lock \
${rdiff-backup
-1.0.5
:location}/bin/rdiff-backup \
${rdiff-backup:location}/bin/rdiff-backup \
$${:exclude_string} \
$${:exclude_string} \
--include='$${:include}' \
--include='$${:include}' \
--exclude='**' \
--exclude='**' \
...
@@ -26,7 +26,7 @@ RESULT=$?
...
@@ -26,7 +26,7 @@ RESULT=$?
if [ $RESULT -eq 0 ]
if [ $RESULT -eq 0 ]
then
then
${coreutils-output:echo} "`${coreutils-output:date} --iso-8601=seconds -u`, $${:statistic_log}, $${:hostname}, backup success" >> $${:status_log}
${coreutils-output:echo} "`${coreutils-output:date} --iso-8601=seconds -u`, $${:statistic_log}, $${:hostname}, backup success" >> $${:status_log}
${findutils-output:find} rdiff-backup-data/ -maxdepth 1 -name "session_statistic*" | ${coreutils-output:sort} | ${coreutils-output:tail} -n 1 | ${findutils-output:xargs} ${rdiff-backup
-1.0.5
:location}/bin/rdiff-backup --calculate-average > $${:statistic_log}
${findutils-output:find} rdiff-backup-data/ -maxdepth 1 -name "session_statistic*" | ${coreutils-output:sort} | ${coreutils-output:tail} -n 1 | ${findutils-output:xargs} ${rdiff-backup:location}/bin/rdiff-backup --calculate-average > $${:statistic_log}
else
else
${coreutils-output:echo} "`${coreutils-output:date} --iso-8601=seconds -u`, $${:statistic_log}, $${:hostname}, backup failed" >> $${:status_log}
${coreutils-output:echo} "`${coreutils-output:date} --iso-8601=seconds -u`, $${:statistic_log}, $${:hostname}, backup failed" >> $${:status_log}
fi
fi
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