protected function rsyncExec($command, $error_msg = 'Rsync has failed')
	{
		$this->log('execRSync: '. $command, LOG_DEBUG);

		chdir($this->basedir);

		passthru($command, $return);

		$this->log('');

		if ($return !== 0) {
			throw new DeployException($error_msg);
		}
	}