Email or username:

Password:

Forgot your password?
Darius Kazemi

lol I just realized that a script I wrote 5 years ago has been continuously duplicating logs on my server multiple times over. Like, I meant to append current logs to a main log file, then clear out the current logs. I forgot the second step, so I ended up appending the same logs (plus new ones) over and over to the big log file. oooops. could have saved myself many gigs of HD space had I noticed sooner

7 comments
Kris Freedain

@darius 5 years? ๐Ÿคฏ
I am so curious how many gigs that ended up being

Darius Kazemi

@krisfreedain oh 20GB of text (this is *after* a step where I filter ~90% of apache logs because I only care about who is hitting the .mp3 files (it's for podcast logs))

๐ŸŒธ

@darius i love the fun lil game of doing `du -h --max-depth=1 .` and being like, why is this directory taking up 4TB ๐Ÿคจ

Darius Kazemi

@cherryblossom I recommend the `ncdu` tool. It makes the game a lot easier by providing an interactive tree you can traverse

๐ŸŒธ

@darius omg thank you, i did not know about this... game changer.....

Go Up