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