Re: Fastest way of removing very large number of files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



----- Original Message -----
| Hi All.
| 
| I currently have a problem on my backup server with very large number
| of
| small files in a large number of directories. I would like to delete
| them
| as fast as possible. Currently I use:
| 
| rsync -a --delete /empty_directory/ dir_to_clean/
| 
| I've read that rsync will be faster than rm or find.
| Can you recommend something? I use an ext4 filesystem.
| 
| Best regards,
| Rafal.

If it's on a different file system than mkfs is the fastest. ;)

-- 
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax     : 778-782-3045
E-Mail  : jpeltier@xxxxxx
Website : http://www.sfu.ca/itservices

“A successful person is one who can lay a solid foundation from the bricks others have thrown at them.” -David Brinkley via Luke Shaw
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux