restic: Do not limit upload by default

This allows servers that have a fast internet connection to complete
their backup in seconds instead of minutes.
This commit is contained in:
Simon Bruder 2022-08-25 23:21:35 +02:00
parent 4e78d87bde
commit e31c264c92
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
5 changed files with 11 additions and 3 deletions

View file

@ -19,6 +19,7 @@
nginx.hardening.enable = true; nginx.hardening.enable = true;
restic.system = { restic.system = {
enable = true; enable = true;
uploadLimit = 1500;
extraPaths = [ extraPaths = [
"/data" "/data"
]; ];

View file

@ -15,7 +15,10 @@
gui.enable = true; gui.enable = true;
media-proxy.enable = true; media-proxy.enable = true;
mullvad.enable = true; mullvad.enable = true;
restic.system.enable = true; restic.system = {
enable = true;
uploadLimit = 1500;
};
unfree.allowSoftware = true; unfree.allowSoftware = true;
wireguard.home.enable = true; wireguard.home.enable = true;
}; };

View file

@ -9,7 +9,10 @@
sbruder = { sbruder = {
gui.enable = true; gui.enable = true;
restic.system.enable = true; restic.system = {
enable = true;
uploadLimit = 1500;
};
unfree.allowSoftware = true; unfree.allowSoftware = true;
wireguard.home.enable = true; wireguard.home.enable = true;
}; };

View file

@ -17,6 +17,7 @@
mullvad.enable = true; mullvad.enable = true;
restic.system = { restic.system = {
enable = true; enable = true;
uploadLimit = 1500;
extraPaths = [ extraPaths = [
"/data" "/data"
]; ];

View file

@ -60,7 +60,7 @@ in
}; };
uploadLimit = lib.mkOption { uploadLimit = lib.mkOption {
type = lib.types.nullOr lib.types.int; type = lib.types.nullOr lib.types.int;
default = 1500; default = null;
}; };
prune = lib.mkEnableOption "pruning"; prune = lib.mkEnableOption "pruning";
}; };