remove pcmd from backup listing code

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-01-15 02:11:28 +01:00
parent 093de8b0a1
commit 5066f417a9

View file

@ -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}"