[X-Unix] General Scripting Question

Russell McGaha russellmcgaha at mac.com
Mon Apr 13 12:37:14 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks;
	I want to look into something I'm not even sure is possible.
	Here's the scenario; I have a script that backs up a directory  
[archives it] with the date in the name, this script runs every  
weekday.  What I want to do is; after making the archive, check the  
available space on that drive, if it is under say 5GB, then check the  
free space on a backup drive, and if the free space there is over say  
10GB move the oldest archives of the first drive onto the second.   
When both drives are too full, I want the script to send me an email  
letting me know I need to clean the drives up.
	Anyone know if this is even possible??


Russell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.11 (Darwin)

iEYEARECAAYFAknjlIEACgkQ5T2I5lFJnG+UJgCeMZjZTNGOHlWDVSs+4f2IQ8Kp
8r4AoNXphhho1UpsHz9VA7cPp1fl1D2t
=zDFg
-----END PGP SIGNATURE-----


More information about the X-Unix mailing list