Quantcast
Channel: Shrink/reset directory size? - Server Fault
Browsing all 4 articles
Browse latest View live

Answer by user313114 for Shrink/reset directory size?

I'd do it like this.cp -aloldirnewdir&&mvolddirtempname&&mvnewdirolddir&&rm -rtempnamewhere olddir is the directory you want to shrinknewdir and tempname are temporary...

View Article


Answer by Dan McCarthy for Shrink/reset directory size?

I recently had to delete and recreate an NFS directory to shrink its size after it had previously bloated. In the process, I found a fairly efficient way to do this using rsync and hard links. This...

View Article

Answer by BMDan for Shrink/reset directory size?

See also rm on a directory with millions of files (the original question is not directly related, but we discuss this problem there nonetheless).As far as I'm aware, at least on ext2/3, no, there's no...

View Article

Shrink/reset directory size?

Is there a way to shrink a directory entry?My dovecot maildir directories have increased in size from the default 4096 to several megs, and it is messing with disk quotas.The only way that I have...

View Article
Browsing all 4 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>