dir should be created by rsync