how to export shared contact folder for backup purpose?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

fraserchen
Posts: 18
Joined: Wed Jun 07, 2006 5:05 pm

how to export shared contact folder for backup purpose?

Postby fraserchen » Tue Sep 18, 2007 5:03 pm

All of our clients maintain a contact folder, Contact1, under Public folders, read and write.

How can I export the shared contact folder to a file? so that I can backup it to tape periodically. Then what's the command to import it backup to scalix in case somebody made mistake.


thanks,
fraser

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

Postby gren » Wed Sep 19, 2007 4:18 am

See the man page for sxmboxexp.

This command will list your public folders with their IDs

sxmboxlist -p

Say the output contains :
F-0000001281 Contact1

then to produce an archive, you can use :

sxmboxexp --public --archive contacts.mboxexp --folder F-0000001281

You can use sxmboximp to restore from the archive file "contacts.mboxexp" at a later date.

Regards,
Gren.

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Wed Sep 19, 2007 4:18 am

you can use the rest API to export the data:

e.g. wget -q http://mail.domain.com/api/sxadmin@doma ... tput=vcard --http-user=sxadmin --http-password=password -O - > /path/domain_contacts_vcard.txt

there is more information in the manual: Scalix API Guide
found here: http://www.scalix.com/community/downloa ... tation.php

There are several good threads about backing up Scalix data - these may provide more scope.

fraserchen
Posts: 18
Joined: Wed Jun 07, 2006 5:05 pm

Postby fraserchen » Wed Sep 19, 2007 3:22 pm

thanks, it works beautiful.


Return to “Scalix Server”



Who is online

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