From 0ee5c80a7879b1954f0dc77f9ff8b7b7314e6e19 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 29 Dec 2011 22:06:23 +0100 Subject: [PATCH] ud-replicate: now preserve server side modifcation times when rsyncing data --- debian/changelog | 8 +++++--- ud-replicate | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4e0a735..6aeaebe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,14 +9,16 @@ userdir-ldap (0.3.XXX) UNRELEASED; urgency=low - filter on shadowAccount. - fix breaking old ud-generate locks. * ud-mailgate: only run ldapmodfiy if we actually have attributes to modify. - * ud-replicate: do not hard-code 'debian.org' in the 'write-zonefile - debian.org' call, but instead re-use the domain from email-append. + * ud-replicate: + - do not hard-code 'debian.org' in the 'write-zonefile debian.org' call, + but instead re-use the domain from email-append. + - now preserve server side modifcation times when rsyncing data. [ Stephen Gran ] * Fix deprecation warnings for sha module by using hashlib module instead * ud-fingerserv: update Net::LDAP import - -- Peter Palfrader Thu, 29 Dec 2011 21:54:54 +0100 + -- Peter Palfrader Thu, 29 Dec 2011 22:05:22 +0100 userdir-ldap (0.3.79) unstable; urgency=low diff --git a/ud-replicate b/ud-replicate index 8324a86..fb6834c 100755 --- a/ud-replicate +++ b/ud-replicate @@ -74,7 +74,7 @@ if [ -e /var/lib/misc/thishost/dns-zone ]; then cp /var/lib/misc/thishost/dns-zone $tempfile2 fi -rsync ${verbose} --delete-after -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" . +rsync ${verbose} --delete-after --times -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