5/29/2019

Step Restore By zmbkpose FULL + INC

Step Restore By zmbkpose FULL + INC
***สำคัญ ใช้ zmbkpose Version ไหนต้องใช้ Version นั้น Restore เพราะ Code ไม่เหมือนกัน***
**** ต้องเตรียมไฟล์ให้พร้อม จาก Full จนถึงวันที่จะ Restore INC
เช่น
zimbra@zimbra:/TestRestore$ ls -la
total 80
drwxr-xr-x 5 root root 4096 May 27 16:15 .
drwxr-xr-x 25 root root 4096 May 27 16:09 ..
drwxr-xr-x 2 root root 4096 May 27 16:14 full-20190518180020
drwxr-xr-x 2 root root 20480 May 27 16:14 inc-20190520211002
drwxr-xr-x 2 root root 28672 May 27 16:14 inc-20190521211002
-rwxr-xr-x 1 root root 17778 May 27 16:14 sessions.txt


แตกไฟล์ inc ของวันต่าง ๆ ที่ต้องการ Restore ไว้
  1. tar -xvf Zimbra_Inc_20190521.tar.gz


1. ข้อมูลต้องมี ตามไฟล์ เช่น Full 20190518
- inc-20190520211002
- inc-20190521211002
- sessions.txt (ของวันที่ล่าสุด จะมี full เริ่มต้นและ Inc ของวันอื่นได ด้วย)

2. เช็คด้วยคำสั่ง zmbkpose -l
zmbkpose -l
full-20190518180020
inc-20190520211002
inc-20190521211002


3. Run คำสั่ง zmbkpose -restoreAccount เพื่อ Restore Data
  1. zmbkpose -restoreAccount suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com

โปรแกรมก็จะเริ่ม Restore จาก Full และ INC ที่มีอยู่ รอจนกว่าจะเสร็จ ช้าขึ้นอยู่กับปริมาณข้อมูล

zmbkpose -restoreAccount suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com
Sessions found full-20190518180020
inc-20190520211002
inc-20190521211002
Restoring from full-20190518180020
adding new entry "uid=suwit_j,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/suwit_j@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
suwit_j@sci.com restored from full-20190518180020
Restoring from inc-20190520211002
adding new entry "uid=suwit_j,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/suwit_j@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/suwit_j@sci.com/Trash. Reason:
<pre> Server Error</pre></p>
</body>
</html>
suwit_j@sci.com restored from inc-20190520211002
Restoring from inc-20190521211002
adding new entry "uid=suwit_j,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/suwit_j@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/suwit_j@sci.com/Trash. Reason:
<pre> Server Error</pre></p>
</body>
</html>
suwit_j@sci.com restored from inc-20190521211002
Sessions found full-20190518180020
inc-20190520211002
inc-20190521211002
Restoring from full-20190518180020
adding new entry "uid=boonta_p,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/boonta_p@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
boonta_p@sci.com restored from full-20190518180020
Restoring from inc-20190520211002
adding new entry "uid=boonta_p,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/boonta_p@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/boonta_p@sci.com/Trash. Reason:
<pre> Server Error</pre></p>
</body>
</html>
boonta_p@sci.com restored from inc-20190520211002
Restoring from inc-20190521211002
adding new entry "uid=boonta_p,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/boonta_p@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/boonta_p@sci.com/Trash. Reason:
<pre> Server Error</pre></p>
</body>
</html>
boonta_p@sci.com restored from inc-20190521211002
Sessions found full-20190518180020
inc-20190521211002
Restoring from full-20190518180020
adding new entry "uid=seksan_k,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/seksan_k@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
seksan_k@sci.com restored from full-20190518180020
Restoring from inc-20190521211002
adding new entry "uid=seksan_k,ou=people,dc=sci,dc=com"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/seksan_k@sci.com/Junk. Reason:
<pre> Server Error</pre></p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/seksan_k@sci.com/Trash. Reason:
<pre> Server Error</pre></p>
</body>
</html>
seksan_k@sci.com restored from inc-20190521211002

ก็จะมี User และ Email ตามที่เรา Restore


No comments:

Post a Comment