Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lysator
LYSrdiff
Commits
b33d0ee9
Commit
b33d0ee9
authored
Oct 25, 2009
by
Per Jonsson
Committed by
Per Cederqvist
Jul 25, 2014
Browse files
Implement the last change correctly.
parent
126d93dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
backup-one-task
View file @
b33d0ee9
...
...
@@ -18,6 +18,7 @@ retry=0
new
=
0
only_prune
=
0
only_clone
=
0
first_run
=
0
ss
=
/opt/LYSrdiff/bin/lysrdiff-set-status.py
...
...
@@ -80,6 +81,10 @@ origin="$base"/origin
rdiffdir
=
"
$files
/rdiff-backup-data"
incrementsdir
=
"
$rdiffdir
/increments"
if
[
!
-d
"
$files
"
]
then
first_run
=
1
fi
mkdir
-p
"
$files
"
mkdir
"
$lockdir
"
||
exit
1
...
...
@@ -139,7 +144,7 @@ then
AGE
=
`
cat
"
$age
"
`
fi
if
[
-d
"
$files
"
]
if
[
$first_run
=
1
]
then
echo
-ne
"
${
CLR
}${
msg
}
: removing increments older than
$AGE
"
$ss
--status
$disk
$part
"
${
msg
}
: removing increments older than
$AGE
"
...
...
@@ -150,6 +155,8 @@ then
--force
\
-v
2
\
"
$files
"
>
"
$rdiffcleanlogfile
"
2>&1
else
touch
"
$rdiffcleanlogfile
"
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