diff options
-rw-r--r-- | modules/duply_backup/default.nix | 2 | ||||
-rw-r--r-- | modules/private/pub/default.nix | 1 | ||||
-rw-r--r-- | modules/private/websites/default.nix | 1 | ||||
-rw-r--r-- | modules/private/websites/tools/tools/shaarli.nix | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/modules/duply_backup/default.nix b/modules/duply_backup/default.nix index 73ac8f0..23de666 100644 --- a/modules/duply_backup/default.nix +++ b/modules/duply_backup/default.nix | |||
@@ -16,7 +16,7 @@ let | |||
16 | 16 | ||
17 | # Do a full backup after 1 month | 17 | # Do a full backup after 1 month |
18 | MAX_FULLBKP_AGE=1M | 18 | MAX_FULLBKP_AGE=1M |
19 | DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE " | 19 | DUPL_PARAMS="$DUPL_PARAMS --exclude-other-filesystems --full-if-older-than $MAX_FULLBKP_AGE " |
20 | # Backups older than 2months are deleted | 20 | # Backups older than 2months are deleted |
21 | MAX_AGE=2M | 21 | MAX_AGE=2M |
22 | # Keep 2 full backups | 22 | # Keep 2 full backups |
diff --git a/modules/private/pub/default.nix b/modules/private/pub/default.nix index 49f3ab8..18c146b 100644 --- a/modules/private/pub/default.nix +++ b/modules/private/pub/default.nix | |||
@@ -17,6 +17,7 @@ | |||
17 | }]; | 17 | }]; |
18 | services.duplyBackup.profiles.pub = { | 18 | services.duplyBackup.profiles.pub = { |
19 | rootDir = "/var/lib/pub"; | 19 | rootDir = "/var/lib/pub"; |
20 | remotes = [ "eriomem" "ovh" ]; | ||
20 | }; | 21 | }; |
21 | users.users.pub = let | 22 | users.users.pub = let |
22 | restrict = pkgs.runCommand "restrict" { | 23 | restrict = pkgs.runCommand "restrict" { |
diff --git a/modules/private/websites/default.nix b/modules/private/websites/default.nix index d9665ff..9467055 100644 --- a/modules/private/websites/default.nix +++ b/modules/private/websites/default.nix | |||
@@ -104,6 +104,7 @@ in | |||
104 | config = lib.mkIf config.myServices.websites.enable { | 104 | config = lib.mkIf config.myServices.websites.enable { |
105 | services.duplyBackup.profiles.php = { | 105 | services.duplyBackup.profiles.php = { |
106 | rootDir = "/var/lib/php"; | 106 | rootDir = "/var/lib/php"; |
107 | remotes = [ "eriomem" "ovh" ]; | ||
107 | }; | 108 | }; |
108 | users.users.wwwrun.extraGroups = [ "keys" ]; | 109 | users.users.wwwrun.extraGroups = [ "keys" ]; |
109 | networking.firewall.allowedTCPPorts = [ 80 443 ]; | 110 | networking.firewall.allowedTCPPorts = [ 80 443 ]; |
diff --git a/modules/private/websites/tools/tools/shaarli.nix b/modules/private/websites/tools/tools/shaarli.nix index 950d296..24b4845 100644 --- a/modules/private/websites/tools/tools/shaarli.nix +++ b/modules/private/websites/tools/tools/shaarli.nix | |||
@@ -4,6 +4,7 @@ let | |||
4 | in rec { | 4 | in rec { |
5 | backups = { | 5 | backups = { |
6 | rootDir = varDir; | 6 | rootDir = varDir; |
7 | remotes = [ "eriomem" "ovh" ]; | ||
7 | }; | 8 | }; |
8 | activationScript = '' | 9 | activationScript = '' |
9 | install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \ | 10 | install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \ |