diff options
-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 \\"}${ |