Page 1 of 1
how to export shared contact folder for backup purpose?
Posted: Tue Sep 18, 2007 5:03 pm
by fraserchen
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
Posted: Wed Sep 19, 2007 4:18 am
by gren
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.
Posted: Wed Sep 19, 2007 4:18 am
by William
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.
Posted: Wed Sep 19, 2007 3:22 pm
by fraserchen
thanks, it works beautiful.