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`
do
 sogo-tool restore -p $MYBACKUPDIR $i
 sogo-tool restore -f ALL $MYBACKUPDIR $i
done

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

a script is shipped with the Sogo package to make automaticly the backups :

/usr/share/doc/sogo/sogo-backup.sh

and

/etc/cron.d/sogo

Edit them to customize

Enjoy! :-)

backupRestore (last edited 2016-02-10 13:18:56 by alainabbas)