handler = new Handler(name, localConnection, remoteConnector, new Crypt(options.getPassphrase()), options.getDuplicate(), options.getFollowLinks(), options.getPermissionType());
handler.init(type, options.getCacheFile(), options.getLockFile(), options.getPIDFile(), options.getNoCache(), options.getForceStart());
switch (type) {
case BACKUP:
handler.backup(!options.isTestRun(), includePatterns, excludePatterns);
break;
case RESTORE:
handler.restore(!options.isTestRun(), includePatterns, excludePatterns);
break;
case LIST: