Commit ef62eb23 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'cleanup-assets-older-than-4-days' into 'master'

Clean up assets that are older than 4 days to reduce assets cache size

See merge request gitlab-org/gitlab-ce!28318
parents 046ff468 66b4c656
#!/bin/bash
# Clean up cached files that are older than 1 week
find tmp/cache/assets/sprockets/ -type f -mtime +7 -execdir rm -- "{}" \;
# Clean up cached files that are older than 4 days
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment