Hi,
You could do something like:
File nexus-bigfiles
#!/bin/bash
size=$1
big_files_list=$(find . -name \*.bytes -type f -printf "%b %h/%f\n" |
awk -v size="$size" '
function basename(file) {
sub(".bytes$", ".properties", file)
return file
}
{if ($1 > size) {
print basename($2) }}')
for i in ${big_files_list}; do
grep -E 'size|BlobStore.blob-name' $i
done
Usage:
$ cd nexus-data/blobs
$ nexus-bigfiles 10000
This will give you a list of all artifacts with size > 10000.
Probably you could setup something more elegant, but this will do the trick. Note, this will only work with the current file based blobstorage.
Met vriendelijke groet/Kind regards,
Mariska Hoogenboom
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
nexus-users...@glists.sonatype.com.
To post to this group, send email to
nexus...@glists.sonatype.com.
To view this discussion on the web visit
https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/468fa564-72b3-4da3-a45a-f32fb1b188ae%40glists.sonatype.com.
For more options, visit
https://groups.google.com/a/glists.sonatype.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/468fa564-72b3-4da3-a45a-f32fb1b188ae%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/1CBB0AB25CBB3645938B01960A52A58A7E4AD560%40ccv-arn-exmb02.ccveu.local.