forked from ungleich-public/ccollect
fix count of backups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4675bf864c
commit
aaf43af0d9
1 changed files with 1 additions and 2 deletions
3
ccollect
3
ccollect
|
@ -437,8 +437,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
#
|
#
|
||||||
# Check: maximum number of backups is reached?
|
# Check: maximum number of backups is reached?
|
||||||
#
|
#
|
||||||
count="$(ls -1 | grep -c "^${INTERVAL}\\.")" \
|
count="$(ls -1 | grep -c "^${INTERVAL}\\.")"
|
||||||
|| _exit_err "Counting backups failed"
|
|
||||||
|
|
||||||
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"
|
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue