Jump to content
Razif Jemaat

Backup E-mail Server

Recommended Posts

Saya ada soalan. Dalam linux, semua e-mail dlm /var/mail kan? Jd, kalu nak backup, cuma copy folder tu, masuk dlm backup, bila kat server baru nnt, boleh ke copy paste je backup td ke server baru?

Edited by Razif Jemaat

Share this post


Link to post
Share on other sites

depend on konye configuration la. n ko gune MTA ape?

satu lagi, kalo ko nak copy paste email tu sbagai backup, byk yg ko kene pk. bile ko copy, dier akn tukar ownership fail2 yang ko copy tu ke user yg tgh ko pakai. contohnye kalo ko gune root time nak copy paste, dier akn tukar ownership tu ke root.

mender ni akan ader masalah kalo ko nak copy balik ke box baru kalo jadi ape2 sbab MTA ko x dpt nak read and write fail2 yang ko dah paste tadi. So, ko kene tukar balik sumer fail ko tu ke ownership yang MTA ko pakai.

aku cadangkan ko gune la RAID. senang sket keje backup2 ni.

Share this post


Link to post
Share on other sites

Dari webmin import user guna batch file sama ada ko upload, copy paste & ko bagi nama target server.

Tapi aku prefer ko guna command scp :

scp source_server user@destination_server

Cth:

Backup semua yg berkenaan dalam nix lama (SOURCE)

tar -cvf home.tar /home

tar -cvf mail.tar /var/mail

Hantar Everything ke nix baru (DESTINATION)

scp home.tar [email protected]:/home/user (kenapa aku x cadang scp the whole directory, anggap je .tar tu sebagai backup & selamat)

scp mail.tar [email protected]:/home/user (kenapa aku x cadang scp the whole directory, anggap je .tar tu sebagai backup & selamat)

scp /etc/passwd [email protected]:/etc

scp /etc/shadow [email protected]:/etc

scp /etc/group [email protected]:/etc

scp /etc/gshadow [email protected]:/etc

Make sure, permission mesti sama.

Lepas tu cuma tinggal extract .tar tu ke dalam folder yg bersesuaian dgn nix baru & pastikan passwd, group, shadow dah settle baru extract. Persoalan sama ada, bleh x source MTA ngan destination MTA berlainan atau tidak, aku x berani jawab. As long ada backup semua bleh jadi.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...