sxmboxexp

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Gerardf

sxmboxexp

Postby Gerardf » Mon Jul 02, 2007 11:52 am

Can anyone help me on how to export all mailbox's in one go and each to different files at the same time !

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Postby gren » Mon Jul 02, 2007 12:20 pm

You could try a script something like :

Code: Select all

omshowu -m all |
while read name
do
    AUTHID=`omshowu -n "$name"|awk '/^Authentication ID:/ {print $3}'`
    sxmboxexp -u "$name" -a "$AUTHID.mboxexp"
done


That would create a set of files in your current directories, one for each user with the filenames taken from the users authentication IDs.
This doesn't have any error handling and you might want to use the sxmboxexp -F option to allow archiving whilst people are logged on etc.

Regards,
Gren.

Gerardf

Postby Gerardf » Tue Jul 03, 2007 3:27 am

gren wrote:You could try a script something like :

Code: Select all

omshowu -m all |
while read name
do
    AUTHID=`omshowu -n "$name"|awk '/^Authentication ID:/ {print $3}'`
    sxmboxexp -u "$name" -a "$AUTHID.mboxexp"
done


That would create a set of files in your current directories, one for each user with the filenames taken from the users authentication IDs.
This doesn't have any error handling and you might want to use the sxmboxexp -F option to allow archiving whilst people are logged on etc.

Regards,
Gren.


Thanks. I thought it would be something like that but I wasn't sure of the syntax. I will give it a go.
regards.


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 3 guests