Skip to content

prune-backups failed at metabase on 1.7.26 3:15 #33

Description

@christoph-maurer
make: Entering directory '/home/cloud/machine'
find /app/data/backups \
        -mindepth 1 \
        -maxdepth 1 \
        -type d \
        -not -path '.*' \
        -execdir rmdir --ignore-fail-on-non-empty '{}' \; cd /app/data/backups && \
        ls -t --indicator-style=slash \
        | grep '/$' \
        | tail --lines=+31 \
        | xargs \
                --delimiter='\n' \
                --no-run-if-empty \
                rm --recursive --dir --
find /app/data/backups/.content-addressable-storage -mindepth 1 -maxdepth 1 -type f -printf "%f\n" | while read -r hash_value; do \
        if [[ -z "$(find /app/data/backups -type l -lname "*/${hash_value}" -print -quit)" ]]; then \
                echo "No symbolic link within /app/data/backups links to /app/data/backups/.content-addressable-storage/${hash_value}. Removing it..." ; \
                rm "/app/data/backups/.content-addressable-storage/${hash_value}" ; \
        fi \
done
make: Leaving directory '/home/cloud/machine'
find: ‘/app/data/backups/.content-addressable-storage’: No such file or directory
make: *** [/app/machine/maintenance.mk:74: prune-backups] Error 1

Metadata

Metadata

Labels

ISEFraunhofer Institute for Solar Energy Systems ISEbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions