hopefully fix restore again
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
for b in $(find /mnt/save -type f | sort | tail -n 1); do
|
for b in $(find /mnt/save -not -path '*/\.*' -type f | sort -r); do
|
||||||
if [ -n "$b" ]; then
|
if [ -n "$b" ]; then
|
||||||
if du -sh "$b" | grep -Ei "^[ ]*(4|2[0-9])(.0)?[Kk]"; then
|
du -sh "$b"
|
||||||
|
if ! du -sh "$b" | grep -Ei "^[ \t]*[0-9][0-9]?(.0)?[mg]"; then
|
||||||
echo would rm empty backup $b >&2
|
echo would rm empty backup $b >&2
|
||||||
set -x
|
set -x
|
||||||
mv "$b" "${b%/*}/.${b##*/}"
|
mv "$b" "${b%/*}/.${b##*/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user