diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-25 16:40:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-25 16:40:04 +0100 |
commit | e920f02da4c8ce3e3f1d0a6571123ffcc03bd455 (patch) | |
tree | 4069174bfeb008bd29f3749d2b614fc5638821ef /modules | |
parent | 10e597f87ee789e9b3d115e6b6afa6f3fee8155a (diff) | |
download | Nix-e920f02da4c8ce3e3f1d0a6571123ffcc03bd455.tar.gz Nix-e920f02da4c8ce3e3f1d0a6571123ffcc03bd455.tar.zst Nix-e920f02da4c8ce3e3f1d0a6571123ffcc03bd455.zip |
Fix rsync compression
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/system/eldiron.nix | 2 | ||||
-rw-r--r-- | modules/rsync_backup/default.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index 0490cfc..27c9353 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix | |||
@@ -64,7 +64,7 @@ | |||
64 | systemCronJobs = [ | 64 | systemCronJobs = [ |
65 | '' | 65 | '' |
66 | # The star after /var/lib/* avoids deleting all folders in case of problem | 66 | # The star after /var/lib/* avoids deleting all folders in case of problem |
67 | 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 | 67 | 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 |
68 | '' | 68 | '' |
69 | ]; | 69 | ]; |
70 | }; | 70 | }; |
diff --git a/modules/rsync_backup/default.nix b/modules/rsync_backup/default.nix index a2ef0fd..55b32bf 100644 --- a/modules/rsync_backup/default.nix +++ b/modules/rsync_backup/default.nix | |||
@@ -168,7 +168,7 @@ let | |||
168 | EOF | 168 | EOF |
169 | 169 | ||
170 | OUT=$RSYNC_OUTPUT/$LOCAL | 170 | OUT=$RSYNC_OUTPUT/$LOCAL |
171 | ${pkgs.rsync}/bin/rsync -XAavbrz --fake-super -e "ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT" --numeric-ids --delete \ | 171 | ${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 \ |
172 | --backup-dir=$BAK_BASE/$LOCAL \${ | 172 | --backup-dir=$BAK_BASE/$LOCAL \${ |
173 | lib.optionalString (part.args != null) "\n ${part.args} \\"}${ | 173 | lib.optionalString (part.args != null) "\n ${part.args} \\"}${ |
174 | lib.optionalString (builtins.length part.exclude_from > 0) "\n --exclude-from=$EXCL_FROM \\"}${ | 174 | lib.optionalString (builtins.length part.exclude_from > 0) "\n --exclude-from=$EXCL_FROM \\"}${ |