updated backup script to work on linux apache server