2

They're simply hardlinks so the files shouldn't actually even be deleted.

What options do I have? It even seems to take quite some load. I don't see how deleting 30.000 hard-links should take more than a minute, let alone a full hour.

I use rsnapshot, centos and an ext3 file system.

ujjain
  • 3,963
  • 15
  • 50
  • 88

2 Answers2

1

It may be that the dir_index feature is not enabled for the filesystem. Using debugfs will allow you to verify if enabled and set it if not.

Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84
1

In order to delete all those files it must traverse the directory tree, and go down into the whole lot, deleting each files & directory one by one. This can take a while.

Sometimes the choice of filesystem can matter. Some filesystems can take a long time to delete lots of little files, some are good at this.

Amandasaurus
  • 30,211
  • 62
  • 184
  • 246