protected function updateFiles($remote_host, $remote_dir, $target_dir)
	{
		$this->log('updateFiles', LOG_DEBUG);

		$this->rsyncExec($this->rsync_path .' --rsh="ssh -p '. $this->remote_port .'" -azcO --force --delete --progress '. $this->prepareExcludes() .' '. $this->prepareLinkDest($remote_dir) .' ./ '. $this->remote_user .'@'. $remote_host .':'. $remote_dir .'/'. $target_dir);

		$this->fixDatadirSymlinks($remote_host, $remote_dir, $target_dir);

		$this->renameTargetFiles($remote_host, $remote_dir);
	}