5/29/2019

Step Restore INC **** ไม่สำเร็จ ******

Step Restore INC **** ไม่สำเร็จ ******
Restore Full เสร็จไปแล้วแต่อยากจะ Restore INC เพิ่มสักวัน
เช่น Restore full-20190518180020
inc-20190520211002
inc-20190521211002
ต้องการ inc วันที่ 22 เข้าไป

1.แตกไฟล์ inc
  1. tar -xvf Zimbra_Inc_20190522.tar.gz


ที่ต้องมี
- inc-20190522211002
- sessions.txt

2. ถ้า run คำสั่งเลยจะฟ้องว่ามีชื่ออยู่แล้ว
zmbkpose -restoreAccount suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com
Account suwit_j@sci.com exists. Use zmbkpose -r suwit_j@sci.com SESSION_name.
Account boonta_p@sci.com exists. Use zmbkpose -r boonta_p@sci.com SESSION_name.
Account seksan_k@sci.com exists. Use zmbkpose -r seksan_k@sci.com SESSION_name.


zmbkpose -r suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com
Not implemented.
Not implemented.
Not implemented.



สามารถใช้คำสั่ง zmbkpose -r email1,email2,email3..... ตามด้วยชื่อที่ได้จากคำสั่ง zmbkpose -l
เช่น
zimbra@zimbra:/TestRestore$ zmbkpose -l
full-20190518180020
inc-20190520211002
inc-20190521211002
inc-20190522211002
zimbra@zimbra:/TestRestore$ zmbkpose -r suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com inc-20190522211002


หรือ จะใช้วิธีแก้ไฟล์ sessions.txt

ต้องทำการแก้ไฟล์ sessions.txt โดยลบ วัน full และวันที่ inc อื่นๆ ออก ให้เลือกเฉพาะ inc ของวันทีจะ Restore
โดย
nano sessions.txt
กด Ctrl + k (ลบทั้งแถว)
ให้เหลือไว้แค่ INC ของวันที่ที่จะ Restore เช่น วันที่ 20190522
SESSION: inc-20190522211002 started on Wed May 22 21:10:02 +07 2019
inc-20190522211002:admin@sci.com:05/22/19
inc-20190522211002:spam.9q7cb0mh8a@sci.com:05/22/19
inc-20190522211002:ham.whcctrpt@sci.com:05/22/19
inc-20190522211002:virus-quarantine.rl2yqjwk@sci.com:05/22/19
inc-20190522211002:galsync.zxqk9lahef@sci.com:05/22/19
inc-20190522211002:kamoltham_t@sci.com:05/22/19
inc-20190522211002:kittiya_s@sci.com:05/22/19
inc-20190522211002:jakkrit_h@sci.com:05/22/19
inc-20190522211002:jintana_y@sci.com:05/22/19
inc-20190522211002:jirayu_k@sci.com:05/22/19
inc-20190522211002:jureerat_w@sci.com:05/22/19
inc-20190522211002:charkrit_j@sci.com:05/22/19
inc-20190522211002:chamnarn_c@sci.com:05/22/19
inc-20190522211002:chumpol_l@sci.com:05/22/19


3. Run คำสั่ง จะเจอวันที่ที่เราจะ Restore วันเดียว
zmbkpose -l
inc-20190522211002


4. Run คำสั่ง Restore
  1. zmbkpose -r suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com inc-20190522211002


******* zmbkpose -r มีปัญหา Restore ไม่ได้ Error ตามด้านล่าง ไม่มีข้อมูลเพิ่ม *************
ให้ใช้ Full และ Full+INC เอา

<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/. 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/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>
<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>
<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>


แบบแก้ ไฟล์ sessions.txt

zimbra@zimbra:/TestRestore$ zmbkpose -l
inc-20190522211002
zimbra@zimbra:/TestRestore$ zmbkpose -r suwit_j@sci.com
Not implemented.
zimbra@zimbra:/TestRestore$ zmbkpose -r suwit_j@sci.com inc-20190522211002
<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/. 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/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>

No comments:

Post a Comment