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