Skip to content
Snippets Groups Projects
Commit a97a05fd authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

rm broken symlinks

parent 5f733e6c
No related branches found
No related tags found
1 merge request!168Draft: run du
Pipeline #122097 failed
...@@ -100,7 +100,11 @@ common:setup: ...@@ -100,7 +100,11 @@ common:setup:
done done
cat list | python filter_broken.py | tee broken cat list | python filter_broken.py | tee broken
cat broken | xargs --no-run-if-empty rm -v cat broken | xargs --no-run-if-empty rm -v
echo "removing broken symlinks"
find `realpath /scratch` -xtype l -print delete
echo "listing cached entries by size"
find `realpath /scratch` -type l -print0 | (du -sL --files0-from=- || true) | sort -n > /tmp/df find `realpath /scratch` -type l -print0 | (du -sL --files0-from=- || true) | sort -n > /tmp/df
#find `realpath /scratch` -type f -print0 | du -s --files0-from=- || true | sort -n > /tmp/df #find `realpath /scratch` -type f -print0 | du -s --files0-from=- || true | sort -n > /tmp/df
head /tmp/df head /tmp/df
tail -n 1000 /tmp/df tail -n 1000 /tmp/df
df -h
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment