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

Kai Reinhard
08.41.2018 c2489ecbd13878e205f8528eeb150d5cd0200d47
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
package de.micromata.borgbutler.json.borg;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import de.micromata.borgbutler.json.JsonUtils;
import lombok.Getter;
import lombok.Setter;
 
import java.util.List;
 
public class RepoList {
    @Getter
    private List<Archive> archives;
    @Getter
    private Encryption encryption;
    @Getter
    private Repository repository;
    @Getter
    @Setter
    @JsonIgnore
    private String originalJson;
 
    public String toString() {
        return JsonUtils.toJson(this, true);
    }
 
    public void updateFrom(RepoList repoList) {
        this.archives = repoList.archives;
        this.encryption = repoList.encryption;
        this.repository = repoList.getRepository();
        this.originalJson = repoList.originalJson;
    }
}