dont del big backups

master
Bel LaPointe 2020-09-29 13:35:51 -06:00
parent 604b803f74
commit 16b974afd1
7 changed files with 2 additions and 5442 deletions

View File

@ -16,7 +16,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
cron \
postgresql postgresql-contrib \
&& curl -L \
https://github.com/miniflux/miniflux/releases/download/2.0.19/miniflux_2.0.19_amd64.deb \
https://github.com/miniflux/miniflux/releases/download/2.0.21/miniflux_2.0.21_amd64.deb \
> /miniflux.deb \
&& dpkg -i /miniflux.deb \
&& mkdir -p /mnt/save

View File

@ -1,7 +1,7 @@
for b in $(find /mnt/save -not -path '*/\.*' -type f | sort -r); do
if [ -n "$b" ]; then
du -sh "$b"
if ! du -sh "$b" | grep -Ei "^[ \t]*[0-9][0-9]?(.0)?[mg]"; then
if ! du -sh "$b" | grep -Ei "^[ \t]*[0-9][0-9]*[0-9]?(.0)?[mg]"; then
echo would rm empty backup $b >&2
set -x
mv "$b" "${b%/*}/.${b##*/}"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long