[Tutorial] Cara Backup Zimbra Mail Server

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
bang_andi
Been thanked: 5 times
Contact:

[Tutorial] Cara Backup Zimbra Mail Server

Post 20 Aug 2018, 16:36

1) Login dengan user zimbra.

Code: Select all

[ bangandi@zmail ~] $ sudo su
[ root@zmail ~] # su - zimbra
[ zimbra@zmail ~] $
2) Pastikan berada di direktori /home/your-username dan buat dir baru 'zimbra_backup'.

Code: Select all

[ zimbra@zmail ~] $ pwd
/home/bangandi/
[ zimbra@zmail ~] $ mkdir zimbra_backup
[ zimbra@zmail ~] $ ls -la
zimbra_backup
3) Matikan service zimbra.

Code: Select all

[ zimbra@zmail ~] $ zmcontrol stop
Host mail.bangandi.web.id

        Stopping zmconfigd...Done.
        Stopping zimlet webp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
4) Pastikan service zimbra benar-benar sudah mati semuanya.

Code: Select all

[ zimbra@zmail ~] $ ps auxww | grep zimbra

root     29973  0.0  0.0 189584  2268 pts/0    S    03:41   0:00 su - zimbra

zimbra   29974  0.0  0.0 117440  1936 pts/0    S    03:41   0:00 -bash

zimbra   32241  0.0  0.0  49496  1620 pts/0    R+   03:45   0:00 ps auxww
 
zimbra   32242  0.0  0.0  11088   664 pts/0    S+   03:45   0:00 grep --color=auto zimbra
 
[ zimbra@zmail ~] $ exit
[ root@zmail ~] $ 
Bila masih ada service zimbra yang running di Kill saja dari nomor PID-nya.

Code: Select all

[ zimbra@zmail ~] $ kill -9 PID-number
[ root@zmail ~] 
5) Mulai backup.

Code: Select all

[ root@zmail ~] # cp -rp /opt/zimbra /home/your-username/zimbra_backup  >> tunggu hingga selesai.
[ root@zmail ~] #                >> bila sudah kembali seperti ini berarti proses backup sudah selesai.
6) Cek hasil backup.

Code: Select all

[ root@zmail ~] # ls -la zimbra_backup/zimbra

total 80

drwxr-xr-x 27 root   root   4096 Aug  8 04:48 .
drwxr-xr-x  3 root   root     20 Aug  9 03:48 ..
drwxr-xr-x  2 zimbra zimbra    6 Aug  8 03:27 backup
-rw-r-----  1 zimbra zimbra 1624 Aug  9 03:46 .bash_history
-rw-rw-r--  1 zimbra zimbra  350 Jul  3 13:15 .bash_profile
-rw-rw-r--  1 zimbra zimbra  835 Jul  3 13:15 .bashrc
drwxr-xr-x  2 root   root   4096 Aug  8 03:27 bin
drwxrwxr-x  2 zimbra zimbra    6 Aug  8 03:27 .cache
drwxr-xr-x 10 root   root    109 Aug  8 03:26 common
drwxr-xr-x 12 zimbra zimbra 4096 Aug  9 03:21 conf
-rw-------  1 root   root   2647 Aug  8 03:42 config.19261
drwxr-xr-x  2 root   root     26 Aug  8 03:27 contrib
drwxr-xr-x 17 zimbra zimbra  221 Aug  8 03:28 data
drwxrwxr-x  3 zimbra zimbra  101 Aug  8 03:28 db
drwxr-xr-x  2 zimbra zimbra 4096 Aug  8 03:27 docs
-rw-rw-r--  1 zimbra zimbra   62 Jul  3 13:15 .exrc
drwxr-xr-x  3 zimbra zimbra   28 Aug  8 03:27 extensions-extra
drwxr-xr-x  2 zimbra zimbra    6 Aug  8 03:28 fbqueue
drwxr-xr-x  3 zimbra zimbra   15 Aug  8 03:52 index
-rw-r--r--  1 root   root   4644 Aug  8 03:54 .install_history
lrwxrwxrwx  1 root   root     10 Aug  8 03:28 jetty -> jetty_base
drwxrwxr-x 12 zimbra zimbra  140 Aug  8 03:49 jetty_base
-rw-rw-r--  1 zimbra zimbra   52 Jul  3 13:15 .ldaprc
drwxrwxr-x  5 root   root    168 Aug  8 03:27 lib
drwxr-xr-x  4 root   root   4096 Aug  8 03:28 libexec
drwxrwxr-x  2 zimbra zimbra 4096 Aug  9 03:50 log
drwxr-xr-x  3 zimbra zimbra   16 Aug  8 03:27 logger
lrwxrwxrwx  1 root   root     10 Aug  8 03:28 mailboxd -> jetty_base
-rw-rw-r--  1 zimbra zimbra   19 Jul  3 13:15 .platform
drwxr-xr-x  3 zimbra zimbra   37 Aug  9 03:43 redolog
drwxr-x---  2 root   root      6 Aug  8 03:13 .saveconfig
drwx------  2 zimbra zimbra   79 Aug  8 03:54 .ssh
drwxr-xr-x 10 zimbra zimbra  235 Aug  8 08:39 ssl
drwxr-xr-x  4 zimbra zimbra   31 Aug  8 03:53 store
-rw-rw-r--  1 zimbra zimbra    0 Jul  3 13:15 .viminfo
drwxrwxr-x  2 zimbra zimbra 4096 Aug  8 03:28 zimlets
drwxr-xr-x 21 zimbra zimbra 4096 Aug  8 03:51 zimlets-deployed
-rw-r-----  1 zimbra zimbra    0 Aug  8 03:27 .zmmailbox_history
-rw-r-----  1 zimbra zimbra 1624 Aug  8 08:34 .zmprov_history
drwxr-xr-x  4 zimbra zimbra 4096 Aug  9 03:21 zmstat
[ root@zmail ~] #
7) Rename direktori backup agar nanti tidak tertimpa oleh hasil backup yang berikutnya.

Code: Select all

[ root@zmail ~] # cd zimbra_backup/zimbra
[ root@zmail ~] # ls -la
zimbra
[ root@zmail ~] # mv zimbra zimbra_freshinstall
[ root@zmail ~] # ls -la
zimbra_freshinstall
8) Hidupkan kembali service zimbra.

Code: Select all

[ root@zmail ~] # su - zimbra
[ zimbra@zmail ~] $ zmcontrol start
Done.

Topik terkait :
[Tutorial] instalasi ZCS OSE 'Open Source Edition' versi 8.8.9 GA di ubuntu server 16.04 Lts > ubuntu-server-f4/tutorial-instalasi-zcs ... 46861.html


Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests