String[] excludePatterns = options.getExcludePatterns();
if (excludePatterns != null) {
LOGGER.log(Level.FINEST, "use exclude pattern: " + "[^" + StringUtils.join(excludePatterns, "$] | [$") + "$]");
}
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);