[Gluster-users] Quickest way to delete many small files

Pete Smith pete at realisestudio.com
Wed Jun 12 14:26:46 UTC 2013


Hi

We've got a directory with approx 1 million files. Mac user ... grr

Is there a quick and dirty way to remove them?

I was going with:

ls | xargs rm

but maybe rsync -a --delete empty/ full/

would be less expensive?

This is on a distributed replicated volume.

Any pointers appreciated!

--
Pete Smith
DevOp/System Administrator
Realise Studio
12/13 Poland Street, London W1F 8QB
T. +44 (0)20 7165 9644

realisestudio.com



More information about the Gluster-users mailing list