More sofisticated backup script