Doing backup using rsync in a seperate thread