[SWLUG] rsync & Maildir
Jonathan Wright
mail at djnauk.co.uk
Fri Aug 11 21:50:41 UTC 2006
You could try something like:
find ~/Maildir -type f -mmin -60 > /tmp/$(date +%Y%m%d%H)
rsync --archive --files-from=/tmp/$(date +%Y%m%d%H) from:/path to:/path
(-mmin means include only those that have been modified within the last
60 minutes)
--
Jonathan Wright
~ mail at djnauk.co.uk
~ www.djnauk.co.uk
--
2.6.17-gentoo-r3-djnauk-b1 AMD Athlon(tm) XP 2100+
up 12 days, 5:57, 2 users, load average: 0.87, 0.62, 0.61
--
cat /dev/random (because u never know, u may see something u like)
--
"You saw him! He's the best, I've had the best!"
~ Nathan Maloney, Queer As Folk, UK
More information about the Swlug
mailing list