compose rsync command in seperate function; use ionice