5/29/2019

Step Restore By zmbkpose FULL

Step Restore By zmbkpose FULL
***สำคัญ ใช้ zmbkpose Version ไหนต้องใช้ Version นั้น Restore เพราะ Code ไม่เหมือนกัน***
Mount จากไฟล์ ที่ Backup ไว้ได้เลย
  1. sudo mount -t cifs -o username=*******,password=******* //192.168.0.218/backup /DATA


1. ที่เราต้องมีคือ
- full-20190518180020 ข้อมูล Backup Full
- sessions.txt

2. นำ Foder Full และ ไฟล์ session.txt ไปไว้ ที่ Folder ที่ Config ไว้
  1. nano /etc/zmbkpose/zmbkpose.conf

ตรง WORKDIR=
ของจริงเอาไว้ใน WORKDIR=/DATA/zimbra_backup

3. Run คำสั่ง จะได้ ชื่อ Folder Full มา
เข้าเป็น
su zimbra
ก่อน Run
  1. zmbkpose -l


4. เริ่ม Restore ด้วยคำสั่ง
  1. zmbkpose -restoreAccount suwit_j@sci.com,boonta_p@sci.com,seksan_k@sci.com,.........(mail ของ user)

รอจนกว่าจะเสร็จครบทุก User อยู่ที่ข้อมูล ตัวอย่างลอง 3 USER
Sessions found full-20190518180020
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
Sessions found full-20190518180020
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
Sessions found full-20190518180020
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


5. ทดลองที่ Member จะเห็น User เพิ่มขึ้นมา และ View Mail ดูจะมีเมล์วันที่ Restore มา


ชื่อเมล์เอาได้จากไฟล์ sessions.txt มาแบ่งแล้ว : แล้วใส่ Comma คันเพื่อไป Run ต่อในคำสั่ง zmbkpose -restoreAccount ได้เลย

No comments:

Post a Comment