Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .