john squid a écrit :

hello:

i am a bit confused in how to archive a users data. i have a user who wants me to archive 11 months of his email. can someone please help with what command i need to perform this action?

I have already tared all of his personal data but i need to know how to only archive only messages within the prior months.

any help would be greatly appreciated.

thank you.

tony


Something like :

find $USER_DIR -type f -mtime +121 | while read USER_FILE
do
# The goal of the following line is to have /full/path/to/user/ transformed in ./ ==> simple path to archive
   REL_DIR=`echo "$USER_FILE" | sed 's/full\/path\/to\/user//g'`
   cp $USER_FILE $BACKUP_DIR/$REL_DIR
done
# just compression...
tar -cjf $BACKUP_DIR

hope this helps



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to