services: move to restic for everything
This commit is contained in:
parent
e9c0d157f1
commit
b00faf77bb
|
@ -85,7 +85,7 @@ in {
|
|||
bitwarden_rs-vault
|
||||
];
|
||||
|
||||
my.services.borg-backup = mkIf cfg.enable {
|
||||
my.services.restic-backup = mkIf cfg.enable {
|
||||
paths = [ "/var/lib/bitwarden_rs" ];
|
||||
exclude = [ "/var/lib/bitwarden_rs/icon_cache" ];
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@ in {
|
|||
};
|
||||
|
||||
# NixOS module uses `gitea dump` to backup repositories and the database,
|
||||
# but it produces a single .zip file that's not very borg-backup friendly.
|
||||
# but it produces a single .zip file that's not very restic friendly.
|
||||
# I configure my backup system manually below.
|
||||
dump.enable = false;
|
||||
|
||||
|
@ -76,7 +76,7 @@ in {
|
|||
# gitea, so it may produce corrupt files in the snapshot if I push stuff
|
||||
# around midnight. I'm not sure how `gitea dump` handles this either,
|
||||
# though.
|
||||
my.services.borg-backup = {
|
||||
my.services.restic-backup = {
|
||||
paths = [
|
||||
config.services.gitea.lfs.contentDir
|
||||
config.services.gitea.repositoryRoot
|
||||
|
|
|
@ -280,7 +280,7 @@ in {
|
|||
federationPort.public
|
||||
];
|
||||
|
||||
my.services.borg-backup = let
|
||||
my.services.restic-backup = let
|
||||
dataDir = config.services.matrix-synapse.dataDir;
|
||||
in mkIf cfg.enable {
|
||||
paths = [ dataDir ];
|
||||
|
|
|
@ -71,7 +71,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
my.services.borg-backup = let
|
||||
my.services.restic-backup = let
|
||||
nextcloudHome = config.services.nextcloud.home;
|
||||
in lib.mkIf cfg.enable {
|
||||
paths = [ nextcloudHome ];
|
||||
|
|
|
@ -54,7 +54,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
my.services.borg-backup = mkIf cfg.enable {
|
||||
my.services.restic-backup = mkIf cfg.enable {
|
||||
paths = [
|
||||
"/var/lib/docker/volumes/paperless_data"
|
||||
"/var/lib/docker/volumes/paperless_media"
|
||||
|
|
Loading…
Reference in a new issue