forked from ungleich-public/ccollect
-p is not needed, when matching directories with */
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
2a6ab4c125
commit
1b591a040c
1 changed files with 2 additions and 1 deletions
|
@ -458,7 +458,8 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
#
|
||||
# Check: maximum number of backups is reached?
|
||||
#
|
||||
count="$(pcmd ls -p1 "${ddir}/${INTERVAL}.*/" | wc -l \
|
||||
|
||||
count="$(pcmd ls -1 "${ddir}/${INTERVAL}.*/" | wc -l \
|
||||
| sed 's/^ *//g')" || _exit_err "Counting backups failed"
|
||||
|
||||
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"
|
||||
|
|
Loading…
Reference in a new issue