Starting from Debian Wheezy, /var/run is a symlink to /run. If rsync
does not treat receiving symlinks to directories as directories, it
would remove the original symlink and create a new, empty directory
where only the files to sync are put in. In the case of /var/run, this
behavior severly impacts the running system (as, for example, several
PID can't be found anymore).

Signed-off-by: Thomas Thrainer <[email protected]>
---
 devel/upload | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/upload b/devel/upload
index 4293de3..8b7051d 100755
--- a/devel/upload
+++ b/devel/upload
@@ -130,7 +130,7 @@ echo ---
 # and now put it under $prefix on the target node(s)
 for host; do
   echo Uploading code to ${host}...
-  rsync -v -rlDc \
+  rsync -v -rlKDc \
     -e "ssh -oBatchMode=yes" \
     --exclude="*.py[oc]" --exclude="*.pdf" --exclude="*.html" \
     "$TXD/" \
-- 
1.8.2.1

Reply via email to