]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Fix rsync compression
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 25 Jan 2020 15:40:04 +0000 (16:40 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 25 Jan 2020 15:40:04 +0000 (16:40 +0100)
modules/private/system/eldiron.nix
modules/rsync_backup/default.nix

index 0490cfc61f455a62f931432e6be8d1cfdd3abe16..27c93537b20a1668dafdc132f996b83544d6b5bb 100644 (file)
@@ -64,7 +64,7 @@
     systemCronJobs = [
       ''
         # The star after /var/lib/* avoids deleting all folders in case of problem
-        0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" -aAXvz --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null
+        0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" --new-compress -aAXv --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null
       ''
     ];
   };
index a2ef0fdcf333940ab815769ef7191acac852f83f..55b32bfa7574afe100d2b87fbee5a5491ac19948 100644 (file)
@@ -168,7 +168,7 @@ let
       EOF
 
       OUT=$RSYNC_OUTPUT/$LOCAL
-      ${pkgs.rsync}/bin/rsync -XAavbrz --fake-super -e "ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT" --numeric-ids --delete \
+      ${pkgs.rsync}/bin/rsync --new-compress -XAavbr --fake-super -e "ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT" --numeric-ids --delete \
         --backup-dir=$BAK_BASE/$LOCAL \${
         lib.optionalString (part.args != null) "\n  ${part.args} \\"}${
         lib.optionalString (builtins.length part.exclude_from > 0) "\n  --exclude-from=$EXCL_FROM \\"}${