From 42f160dd517de17494463ea31a68f2d97269fa2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 18 Apr 2018 11:54:00 +0200 Subject: [PATCH] use new lizardfs rremove --- lizardfs/lizsrdfs-snapshots.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lizardfs/lizsrdfs-snapshots.sh b/lizardfs/lizsrdfs-snapshots.sh index 7ff279b..2b02b06 100755 --- a/lizardfs/lizsrdfs-snapshots.sh +++ b/lizardfs/lizsrdfs-snapshots.sh @@ -111,7 +111,7 @@ for src in "${SOURCES[@]}"; do echo " " "lizardfs makesnapshot '${src}' '${DESTINATION}/${target}${date}'" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do - echo " " "rm -rf '$f'" + echo " " "lizardfs rremove '$f'" done fi else @@ -119,7 +119,7 @@ for src in "${SOURCES[@]}"; do lizardfs makesnapshot "${src}" "${DESTINATION}/${target}${date}" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do - rm -rf "$f" + lizardfs rremove "$f" done fi fi