diff --git a/lizardfs/lizardfs-snapshots.sh b/lizardfs/lizardfs-snapshots.sh index 6f94ee1..32821be 100755 --- a/lizardfs/lizardfs-snapshots.sh +++ b/lizardfs/lizardfs-snapshots.sh @@ -111,7 +111,8 @@ for src in "${SOURCES[@]}"; do echo " " "lizardfs makesnapshot -lf '${src}' '${DESTINATION}/${target}${date}'" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do - echo " " "lizardfs rremove -l '$f'" + #echo " " "lizardfs rremove -l '$f'" + echo " " "rm -rf --one-filesystem '$f'" done fi else @@ -119,7 +120,8 @@ for src in "${SOURCES[@]}"; do lizardfs makesnapshot -lf "${src}" "${DESTINATION}/${target}${date}" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do - lizardfs rremove -l "$f" + #lizardfs rremove -l "$f" + test -d "$f" && rm -rf --one-filesystem "$f" done fi fi