updated rsync filters and functions
added close files, mysql config