matrix: don't backup cached media
This commit is contained in:
parent
8b5e107aea
commit
c47d72a376
|
@ -180,9 +180,12 @@ in {
|
||||||
federationPort.public
|
federationPort.public
|
||||||
];
|
];
|
||||||
|
|
||||||
my.services.borg-backup = mkIf cfg.enable {
|
my.services.borg-backup = let
|
||||||
paths = [ "/var/lib/matrix-synapse" ];
|
dataDir = config.services.matrix-synapse.dataDir;
|
||||||
# FIXME: find out what I can exclude safely
|
in mkIf cfg.enable {
|
||||||
|
paths = [ dataDir ];
|
||||||
|
# this is just caching for other servers media, doesn't need backup
|
||||||
|
exclude = [ "${dataDir}/media/remote_*" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue