forked from ungleich-public/ccollect
remove pcmd from backup listing code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
093de8b0a1
commit
5066f417a9
1 changed files with 1 additions and 2 deletions
3
ccollect
3
ccollect
|
@ -461,8 +461,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
||||||
remove="$((${count} - ${substract}))"
|
remove="$((${count} - ${substract}))"
|
||||||
_techo "Removing ${remove} backup(s)..."
|
_techo "Removing ${remove} backup(s)..."
|
||||||
|
|
||||||
pcmd ls -${TSORT}d1r "${ddir}/${INTERVAL}."*"/" |
|
ls -${TSORT}d1r | grep "${INTERVAL}\\." | head -n "${remove}" > "${TMP}" || \
|
||||||
head -n "${remove}" > "${TMP}" || \
|
|
||||||
_exit_err "Listing old backups failed"
|
_exit_err "Listing old backups failed"
|
||||||
|
|
||||||
delete_from_file "${TMP}"
|
delete_from_file "${TMP}"
|
||||||
|
|
Loading…
Reference in a new issue