mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
14.20.2021 5e39c0040ddde260831a5b9f73c0bbfec3738f94
borgbutler-core/src/main/java/de/micromata/borgbutler/config/Configuration.java
@@ -11,6 +11,9 @@
import java.util.ArrayList;
import java.util.List;
/**
 * Representation of ~/.borgbutler/borgbutler-config.json.
 */
public class Configuration {
    private Logger log = LoggerFactory.getLogger(Configuration.class);
    /**
@@ -21,11 +24,16 @@
    @JsonIgnore
    private File workingDir;
    /**
     * The path of the borg command to use.
     * The path of the borg command to use (optional).
     */
    private String borgCommand;
    /**
     * The borg version to install from github (optional).
     */
    private String borgVersion;
    /**
     * Default is 100 MB (approximately).
     */
    private int maxArchiveContentCacheCapacityMb = 100;
@@ -105,10 +113,17 @@
        return repoConfigs;
    }
    /**
     * Optional borg command to use.
     */
    public String getBorgCommand() {
        return this.borgCommand;
    }
    public String getBorgVersion() {
        return borgVersion;
    }
    public int getMaxArchiveContentCacheCapacityMb() {
        return this.maxArchiveContentCacheCapacityMb;
    }
@@ -131,6 +146,10 @@
        return this;
    }
    public void setBorgVersion(String borgVersion) {
        this.borgVersion = borgVersion;
    }
    public Configuration setShowDemoRepos(boolean showDemoRepos) {
        this.showDemoRepos = showDemoRepos;
        return this;