Sentora Support Forums
Email backup and restore - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: Email Support v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=35)
+---- Thread: Email backup and restore (/showthread.php?tid=1836)



Email backup and restore - txt3rob - 07-30-2015

Is there any way i can backup the emails for all my clients and then if i had to do a restore of them?


RE: Email backup and restore - apinto - 07-31-2015

Yes there is a way.
Backup the folder "/var/sentora/vmail"

You can run the command via SSH, this will backup the vmail folder to your /root user folder as "backup_vmail.tar.gz"
Code:
tar -czPf /root/backup_vmail.tar.gz /var/sentora/vmail

Hope this helps Wink


RE: Email backup and restore - Me.B - 07-31-2015

tar the whole emails is not the right solution. Think more about a differential backup solution, as a lot of clients will keep their email in inbox and content is changing a lot. It's a big problem.

If you want only to mirror it daily think about using rsync, but again you won't be able to hold more than a copy.

M B


RE: Email backup and restore - apinto - 07-31-2015

(07-31-2015, 06:56 AM)Me.B Wrote: tar the whole emails is not the right solution. Think more about a differential backup solution, as a lot of clients will keep their email in inbox and content is changing a lot. It's a big problem.

If you want only to mirror it daily think about using rsync, but again you won't be able to hold more than a copy.

M B

I do agree with you Me.B, however for some simple servers with low email traffic this is just enough.

Ideally you should backup email via another IMAP server, that would be perfect Smile