From 412f7b2d7440d0a2b29309d4a62402c7bc3a5487 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 22 Jan 2022 22:11:03 +0100 Subject: [PATCH] Deploy files conditionally based on checksum By default rsync uses modification time and file size which is effectively reduced to just file size due to using Nix. This is not enough to work reliably e.g. on changes to a single letter or fixed-format strings. --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 1912cc2..73b3b9a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -19,4 +19,4 @@ case "$target" in esac nix build -o "result-${target}" -L ".#${nix_package}" -rsync -varzLP --delete --delay-updates "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}" +rsync -vacrzLP --delete --delay-updates "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}"