]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add more profiles for ovh
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 14 Aug 2020 21:16:35 +0000 (23:16 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 14 Aug 2020 21:16:35 +0000 (23:16 +0200)
modules/duply_backup/default.nix
modules/private/pub/default.nix
modules/private/websites/default.nix
modules/private/websites/tools/tools/shaarli.nix

index 73ac8f03140094455feb7c413f60bfa7d0c258d4..23de666cd243c2b94fe3bc91ca84dfefce6ae2e6 100644 (file)
@@ -16,7 +16,7 @@ let
 
     # Do a full backup after 1 month
     MAX_FULLBKP_AGE=1M
-    DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE "
+    DUPL_PARAMS="$DUPL_PARAMS --exclude-other-filesystems --full-if-older-than $MAX_FULLBKP_AGE "
     # Backups older than 2months are deleted
     MAX_AGE=2M
     # Keep 2 full backups
index 49f3ab8a1907fcd4e7a27a615c05ce94351d17ce..18c146baeca7ac80afbc12a2ba14499892276109 100644 (file)
@@ -17,6 +17,7 @@
     }];
     services.duplyBackup.profiles.pub = {
       rootDir = "/var/lib/pub";
+      remotes = [ "eriomem" "ovh" ];
     };
     users.users.pub = let
       restrict = pkgs.runCommand "restrict" {
index d9665ff5fe0bb085b7d598c630c2d4f4fcc1d2eb..946705590b7ccc148d5d611914d34d430e45678e 100644 (file)
@@ -104,6 +104,7 @@ in
   config = lib.mkIf config.myServices.websites.enable {
     services.duplyBackup.profiles.php = {
       rootDir = "/var/lib/php";
+      remotes = [ "eriomem" "ovh" ];
     };
     users.users.wwwrun.extraGroups = [ "keys" ];
     networking.firewall.allowedTCPPorts = [ 80 443 ];
index 950d2962fa2f95b4bee2ad48a634ca27acf72daa..24b4845480ec2aab69b089caa8017d1f606202b2 100644 (file)
@@ -4,6 +4,7 @@ let
 in rec {
   backups = {
     rootDir = varDir;
+    remotes = [ "eriomem" "ovh" ];
   };
   activationScript = ''
     install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \