Author Topic: Need to reinstall zentyal 2.2  (Read 2272 times)

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Need to reinstall zentyal 2.2
« on: December 12, 2013, 03:10:21 pm »
Hello,

I need some advice. I need to reinstall, since making the mistake of choosing an encrypted file system.

The machine is used for mail, proxy and firewall only. Any pointers would be appreciated.

The plan:

I have a second 300 GB drive in the machine, not being used by the system. Plan is to copy mail to said drive for backup.

How can I backup all configurations and other user data to that drive?
Where is the mail store located for all the users?
Will I be able to just copy the mail back to the newly installed system without much issues? after recreating the all the users?

thanks,
wdp

christian

  • Guest
Re: Need to reinstall zentyal 2.2
« Reply #1 on: December 12, 2013, 03:49:26 pm »
If you plan to "migrate" from 2.2 to 2.2, you could perhaps save configuration, export accounts and groups (if any)...

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #2 on: December 12, 2013, 05:41:31 pm »
Configuration I can save, yes

How do I export the accounts and groups?

thanks
wdp

Zei

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 213
  • Karma: +18/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #3 on: December 12, 2013, 05:45:29 pm »
If you need to backup and restore the mail, is placed in /var/vmail/your_domain. If you use Zarafa, the mail data is stored in /var/lib/mysql, and you should use the backup tool provided by Zarafa http://www.zarafa.com/wiki/index.php/Backup-tool

To export users and groups just use a configuration backup: http://doc.zentyal.org/2.2/en/backup.html#zentyal-configuration-backup

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #4 on: December 12, 2013, 05:58:32 pm »
Thanks,

I will test the backup of mail.

wdp

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #5 on: December 13, 2013, 07:51:37 am »
hello,

will I be able to keep the permission on files if I copy the data to an NTFS formatted drive?

Should I rather format the spare drive to another file system?

wdp

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #6 on: December 13, 2013, 11:30:44 am »
Hi wilhelmdup:

In order to save permissions, create a tar file containing those files you want to save and save that tar on the ntfs drive ;)

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #7 on: December 13, 2013, 11:42:38 am »
I just used,

cp -p -r /var/vmail/*

Should I rather go with the tar file aswell?

perhaps.

thanks

wdp

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Need to reinstall zentyal 2.2
« Reply #8 on: December 14, 2013, 02:38:26 pm »
The server is reinstalled. mail was copied back to the server. able to see mailstore when login via webmail.

The proxy is also working.

Just clamav giving errors and mail delivery not working yet.

Thanks for the help so far.
wdp

wilhelmdup

  • Zen Apprentice
  • *
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Solved Re: Need to reinstall zentyal 2.2
« Reply #9 on: December 16, 2013, 07:40:29 am »
All done and working again.

Thank you for the help.
wdp