From: micah Date: Fri, 8 Aug 2008 04:50:55 +0000 (+0000) Subject: fix location of deleted_on file and add missing destid_file options in maildir handler X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=a7be6f20885ec089d5c1ada02947c32822a80bd0;p=matthijs%2Fupstream%2Fbackupninja.git fix location of deleted_on file and add missing destid_file options in maildir handler git-svn-id: http://code.autistici.org/svn/backupninja/trunk@619 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index ca0a952..2ca863d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ version 0.9.7 -- UNRELEASED backupninja changes . fix bug in reportspace, thanks Dan Garthwaite + handler changes + maildir: + . fix location of deleted_on file + . add missing destid_file options to ssh connections version 0.9.6 -- July 21, 2008 backupninja changes @@ -216,7 +220,7 @@ version 0.9.4 -- October 6th, 2006 sshoptions (Closes: #388543) . Now forbid to (try to) include /. sys: - . Many more system checks were added, (thanks to Petr Klíma) + . Many more system checks were added, (thanks to Petr Klíma) . Added warning if no devices were found (thanks Ranier Zocholl) . Enhanced debian package selections to include purged packages (thanks Tom Hoover) @@ -337,7 +341,7 @@ version 0.9.2 -- December 29, 2005 version 0.9.1 -- November 05 2005 rearranged source so that it is relocatable with autotools - (thanks to Petr Klíma petr.klima@madeta-group.cz) + (thanks to Petr Klíma petr.klima@madeta-group.cz) fixed many bugs in rdiff helper rdiff handler does not require 'label' (for real this time?) added makecd ninjahelper diff --git a/handlers/maildir.in b/handlers/maildir.in index 3514153..d5731be 100644 --- a/handlers/maildir.in +++ b/handlers/maildir.in @@ -132,12 +132,12 @@ function do_remove() { cd "$srcdir" for userdir in `ls -d1 */`; do ls -1 "$srcdir/$userdir" | sort > $tmp1 - ssh -p $destport $destuser@$desthost ls -1 "$destdir/$userdir" | sort > $tmp2 + ssh -p $destport -i $destid_file $destuser@$desthost ls -1 "$destdir/$userdir" | sort > $tmp2 for deluser in `join -v 2 $tmp1 $tmp2`; do [ "$deluser" != "" ] || continue info "removing $destuser@$desthost:$destdir/$userdir$deluser/" - ssh -p $destport $destuser@$desthost mv "$destdir/$userdir$deluser/" "$destdir/deleted" - ssh -p $destport -i $destid_file $destuser@$desthost "date +%c%n%s > '$destdir/$userdir$deluser/deleted_on'" + ssh -p $destport -i $destid_file $destuser@$desthost mv "$destdir/$userdir$deluser/" "$destdir/deleted" + ssh -p $destport -i $destid_file $destuser@$desthost "date +%c%n%s > '$destdir/deleted/$deluser/deleted_on'" done done rm $tmp1