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