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

Kai Reinhard
17.24.2021 1c9178997dd15d65b5f84b4870b3e54caa30ff61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package de.micromata.borgbutler.json.borg;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import de.micromata.borgbutler.json.JsonUtils;
 
import java.io.Serializable;
 
/**
 * This object is given by <tt>borg list archive</tt>.
 */
public class BorgArchive2 implements Serializable {
    private static final long serialVersionUID = 4734056884088174992L;
    @JsonProperty("chunker_params")
    private int[] chunkerParams;
    /**
     * The command line used for creating this archive: borg create --filter...
     */
    @JsonProperty("command_line")
    private String[] commandLine;
    private String comment;
    private String start;
    private String end;
    private String duration;
    private BorgArchiveStats stats;
    private BorgArchiveLimits limits;
    private String hostname;
    private String username;
 
    public String toString() {
        return JsonUtils.toJson(this, true);
    }
 
    public int[] getChunkerParams() {
        return this.chunkerParams;
    }
 
    public String[] getCommandLine() {
        return this.commandLine;
    }
 
    public String getComment() {
        return this.comment;
    }
 
    public String getStart() {
        return this.start;
    }
 
    public String getEnd() {
        return this.end;
    }
 
    public String getDuration() {
        return this.duration;
    }
 
    public BorgArchiveStats getStats() {
        return this.stats;
    }
 
    public BorgArchiveLimits getLimits() {
        return this.limits;
    }
 
    public String getHostname() {
        return this.hostname;
    }
 
    public String getUsername() {
        return this.username;
    }
}