Find and move files greater than 15GB
I have a Ubuntu NAS set up with two 1.5TB in a mirrored array. We recently needed more storage and will constantly be adding to this machine. We added 2 2TB drives in a striped array. What I'd like to do is find all directories totaling 10GB+ on the mirrored array and move them over to the striped array to increase storage on the mirrored array for smaller, more important data. I've tried:
Code:
find /mirror -maxdepth 1 -size 10G |
Hello,
I think if your looking for the biggest directories that you'll be better of using du to list them. Something like this will give you all the directories in the one where you executed the command, only 1 level deep and list the size as Gb, then sort then numerical and recursive so that the biggest get listed first. Code:
du -h --max-depth=1 -B G | sort -n -r Eric |
Agree with Eric; the find cmd option -size is for file sizes, not dirs.
http://linux.die.net/man/1/find Quote:
|
All times are GMT -5. The time now is 05:50 AM. |