From b20f306204cc909d64343dad7516560da829c84f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 26 Oct 2008 22:31:35 +0100 Subject: [PATCH] ud-replicate: Use --delete-after with rsync. Previously we didn't delete stuff ever --- debian/changelog | 4 +++- ud-replicate | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1603478..f093c31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,10 @@ userdir-ldap (0.3.45) unstable; urgency=low * ud-generate: Declare [UNTRSUTED] flag as obsolete. * ud-generate: Add [NOMARKERS] flag to not push markers (gps coordinates) to host. + * ud-replicate: Use --delete-after with rsync. Previously we didn't delete + stuff ever. - -- Peter Palfrader Thu, 23 Oct 2008 20:25:09 +0200 + -- Peter Palfrader Sun, 26 Oct 2008 22:30:55 +0100 userdir-ldap (0.3.44) unstable; urgency=low diff --git a/ud-replicate b/ud-replicate index 3601b32..fd858a2 100755 --- a/ud-replicate +++ b/ud-replicate @@ -59,7 +59,7 @@ $LOCALSYNCON) ;; esac -rsync ${verbose} -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" . +rsync ${verbose} --delete-after -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" . makedb "$HOST/passwd.tdb" -o passwd.db.t if [ -s "$HOST/shadow.tdb" ] -- 2.20.1