Commit af35be8d authored by Vitaly Lipatov's avatar Vitaly Lipatov

archive_spam: fix rm for big dir

parent 98e2320e
......@@ -21,7 +21,8 @@ archive_spamdir()
#etertimemachine rotate $BACKUPDIR
rm -rf $SPAMDIR.copy
cp -al $SPAMDIR $SPAMDIR.copy
rm -f $SPAMDIR/*. $SPAMDIR/cyrus.*
find $SPAMDIR -maxdepth 1 -name "*\." -delete
rm -f $SPAMDIR/cyrus.*
/usr/lib/cyrus/reconstruct "$SPAMBOX"
erc create "$BACKUPDIR/$(date -R).tar.gz" $SPAMDIR.copy
rm -rf $SPAMDIR.copy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment