|
|
|
@ -108,7 +108,7 @@ for src in "${SOURCES[@]}"; do |
|
|
|
|
target="${src##*/}${periodity}" |
|
|
|
|
if test $dryrun -eq 1; then |
|
|
|
|
echo -e "→ \e[1mbackup $src\e[0m" |
|
|
|
|
echo " " "lizardfs makesnapshot '${src}' '${DESTINATION}/${target}${date}'" |
|
|
|
|
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 '$f'" |
|
|
|
@ -116,7 +116,7 @@ for src in "${SOURCES[@]}"; do |
|
|
|
|
fi |
|
|
|
|
else |
|
|
|
|
echo -e "→ \e[1mbackup $src\e[0m" |
|
|
|
|
lizardfs makesnapshot "${src}" "${DESTINATION}/${target}${date}" |
|
|
|
|
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 "$f" |