Backup and restore

Backup your Sogo server

there are a tool for backup and restore (and other things). This tool is called sogo-tool. With it you can backup and restore your server.

Backup user

#sogo-tool backup /mybackupdir my.user

or to for backup all the users

#sogo-tool backup /mybackupdir ALL

Restore your datas

For one user :

Restore the parameters (signature, filters ....)

#sogo-tool restore -p /mybackupdir my.user

To see what is in the backup

#sogo-tool restore -l /mybackupdir my.user

Restore the folders for one user

#sogo-tool restore -f ALL /mybackupdir my.user

Restore only one folder (Calendar or contacts)

find the name with sogo-tool restore -l /mybackup my.user and

#sogo-tool restore -f mycontacts /mybackupdir my.user

for restoring all the users you have to make a little script :

MYBACKUPDIR=/mybackup

cd $MYBACKUPDIR 
for i in `ls`
{
 sogo-tool restore -p $MYBACUPDIR $i
 sogo-tool restore -f ALL $MYBACKUP $i
}

see also the FAQ article : http://www.sogo.nu/english/support/faq/article/how-can-i-backuprestore-my-user-data.html