From: Ismaƫl Bouya Date: Sat, 25 Jan 2020 15:40:04 +0000 (+0100) Subject: Fix rsync compression X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f339c9da752bf6d237b8295cd172c046c701ea9e;p=perso%2FImmae%2FConfig%2FNix%2FNUR.git Fix rsync compression --- diff --git a/modules/rsync_backup/default.nix b/modules/rsync_backup/default.nix index a2ef0fdc..55b32bfa 100644 --- a/modules/rsync_backup/default.nix +++ b/modules/rsync_backup/default.nix @@ -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 \\"}${