Author Topic: BUG? Backup BETA vmail more than 2GB  (Read 4238 times)

0 Members and 2 Guests are viewing this topic.

Offline
***
BUG? Backup BETA vmail more than 2GB
« on: January 07, 2023, 02:10:56 PM »
i lost email 3GB because the backup not working
with capacity 3GB from total 7 GB
i do full Backup compressed using backup BETA


(this is test account actually, i fill the email about 3GB to  test - text email with some jpg attachment, to simulate normal email activity)


after backup the file size at full backup manual folder file size about 1.7GB


then i remove the real account
then i restore it using backup BETA-->restore


it only restore 256MB and some trouble in roundcube mail with PLAIN AUTH error
then i fix it with change password
after that, i login to my mail box...


viola... no inbox only sent and spam folder.
email restored 256 MB only w/o inbox

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #1 on: January 29, 2023, 04:24:31 PM »
This a good reason for manual backups. I use rsync to backup /var/vmail to another server offsite, but you could use it to backup mail locally to the same disk in another location.

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #2 on: January 31, 2023, 02:27:53 PM »
This a good reason for manual backups. I use rsync to backup /var/vmail to another server offsite, but you could use it to backup mail locally to the same disk in another location.


manual backup?


you mean backup3 beta with manual action


or backup that have many option (the other backup) ?

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #3 on: February 01, 2023, 12:38:32 AM »
manual backup = SCP or rsync (nothing to do with the web-based control panel).

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #4 on: February 01, 2023, 05:59:00 PM »
manual backup = SCP or rsync (nothing to do with the web-based control panel).


it can restore the /vmail without changing password ?

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #5 on: February 01, 2023, 06:33:29 PM »
Sure, you can do whatever you want "behind its back". The /var/vmail directory is owned by vmail:mail, so you just recursively set those permissions if you need to.

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #6 on: February 02, 2023, 05:35:41 PM »
Sure, you can do whatever you want "behind its back". The /var/vmail directory is owned by vmail:mail, so you just recursively set those permissions if you need to.




just need to zip /vmail then that include all info.. user login password and entire email ?

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #7 on: February 02, 2023, 09:53:40 PM »
You don't need to know any user's login info -- just run the operation and reverse it back if you have have a failure or data loss. E-mails are just atomic files owned by vmail:mail -- you don't need to authenticate as the user to read them or rsync them offsite. You can gzip/compress in transit and also at rest on the target drive if you need it be smaller. I have enough disk space on the target to not need compression.

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #8 on: February 03, 2023, 08:30:30 AM »
You don't need to know any user's login info -- just run the operation and reverse it back if you have have a failure or data loss. E-mails are just atomic files owned by vmail:mail -- you don't need to authenticate as the user to read them or rsync them offsite. You can gzip/compress in transit and also at rest on the target drive if you need it be smaller. I have enough disk space on the target to not need compression.




sorry im not that pro
but... in other word


i just can ZIP (or tar :D ) the /var/vmail
and the zip (archive) file can be unzip/untar (extracted) any time...
with condition to chown the owner back for each client email parent folder?

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #9 on: February 04, 2023, 02:56:30 PM »
Yes, that sounds right. /var/vmail is Just a Bunch of Files (JBF) -- you can do whatever you want with them. ;)

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #10 on: February 07, 2023, 12:00:02 AM »
Yes, that sounds right. /var/vmail is Just a Bunch of Files (JBF) -- you can do whatever you want with them. ;)


omg... just like that?
i was thought i need to backup some vmail db or something....


overall
it just folder

all i need only copy the parent client's folder

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #11 on: February 07, 2023, 03:16:12 AM »
You should also backup these DB for a more comprehensive backup of all client info and settings: oauthv2, root_cwp, postfix, postfix_policyd, roundcube

Offline
***
Re: BUG? Backup BETA vmail more than 2GB
« Reply #12 on: February 08, 2023, 06:43:19 PM »
You should also backup these DB for a more comprehensive backup of all client info and settings: oauthv2, root_cwp, postfix, postfix_policyd, roundcube


and that mean... do manually what should cwp does :D i will test it and take alook inside the sql

Offline
*****
Re: BUG? Backup BETA vmail more than 2GB
« Reply #13 on: February 09, 2023, 03:53:36 AM »
Depends on if you trust the machine -- or your own manual backups more. I'm telling you what I do! Those DB don't change very often (roundcube the most), so if you just dump them (or dump all DB) to a backup every 6 mo or so, you're fairly safe.