Skip to content
Snippets Groups Projects
Verified Commit 461eb30b authored by David Hoese's avatar David Hoese
Browse files

Add deletion of cache symlinks to yearly purge script

parent 36dab532
No related branches found
No related tags found
No related merge requests found
......@@ -21,4 +21,7 @@ echo "Removing non-5 minute images for camera ${camera} from years ${years}"
# See https://stackoverflow.com/a/35868472/433202
shopt -s extglob
camdirs="/data3/inst-data/aoss/cameras/${camera}/@(${years//,/|})"
find $camdirs \( -path "*/??/??/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/??_?[05]_[12345]?.trig+00.jpg" \) -delete
\ No newline at end of file
find $camdirs \( -path "*/??/??/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/??_?[05]_[12345]?.trig+00.jpg" \) -delete -type f
# delete symbolic links from cache
camdirs_cache="/data3/cache/aoss/cameras/${camera}/img/@(${years//,/|})"
find -H $camdirs_cache \( -path "*/??/??/orig/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/orig/??_?[05]_[12345]?.trig+00.jpg" \) -delete -type l
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment