I've managed to improve this script a little, so here is a new version.
- First run now does not gives errors
- Modified the log function to accept first time dir createin
- Modified the starting sequence to not check the free space if the primary backup directory does not exist
- If primary backup dir does not exist now it's created at the start
- Added a line to remove the maildata at the start if the user stops the script before finishing his jobs. This prevents the script to send incorect mails.
- Added link http://www.howtoforge.com/forums/showthread.php?t=41609
- Added first TODO
Thanks goes to nokia80, Snake12, rudolfpietersma, HyperAtom, jmp51483, bseibenick, dipeshmehta, andypl and others
Allways download the latest version here: http://www.eurosistems.ro/back-res
Old version: http://www.eurosistems.ro/back-res.0.9.1