Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to monitor in unix (FreeBSD) /linux (CentOS 5.6) the disk space if its greater or equal to 80%?

If its equal or greater then 80%. How can i tell dump the data from a specific /misc/ folder to DVD and empty the space that was burned to DVD. So that it never cross 80% threshold?

example: * * * * * /usr/bin/php or perl /myscript

Thank you

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Depends on your comfort level with scripting. The standard command for most flavors of Unix to check disk space is "df" The output of this could easily be integrated with a simple script that does something when df discovers a value above 80. Google will locate lots of similar things, you just have to pick a language or a shell.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.