Skip to content

Commit

Permalink
fix location of deleted_on file and add missing destid_file options i…
Browse files Browse the repository at this point in the history
…n maildir handler
  • Loading branch information
micah committed Aug 8, 2008
1 parent c4f2b1d commit a76cc2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 [email protected])
(thanks to Petr Klíma [email protected])
fixed many bugs in rdiff helper
rdiff handler does not require 'label' (for real this time?)
added makecd ninjahelper
Expand Down
6 changes: 3 additions & 3 deletions handlers/maildir.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a76cc2f

Please sign in to comment.