commit 58b309b678bf7e9e9bd548ade0ff8ed6d417327c parent 4699b1af05e4e225fcd06fa95cd0dece01b56e98 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 18 Sep 2019 13:12:33 +0200 Add --update flag to rsync calls Diffstat:
M | .local/bin/sync-adamsgaard.dk.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/sync-adamsgaard.dk.sh b/.local/bin/sync-adamsgaard.dk.sh @@ -3,7 +3,7 @@ host=www@adamsgaard.dk:/var/www/html localdir="$HOME/code/adamsgaard.dk" echo "syncing new content to $host" -rsync -rav --progress -e "ssh" "$localdir"/* "$host"/ +rsync --update -rav --progress -e "ssh" "$localdir"/* "$host"/ echo "syncing new content from $host" -rsync -rav --progress -e "ssh" "$host"/* "$localdir"/ +rsync --update -rav --progress -e "ssh" "$host"/* "$localdir"/