Control Web Panel
WebPanel => Backup => Topic started by: leisegang on December 29, 2024, 07:15:29 PM
-
Is there a way to get it to backup it to a TAR without it beeing compressed?
I have several large mail accounts that use like 2 hours to backup.
OR is there a way to do a sort of manual script for backup that is possible to then again import if i need to recover an account?
-
One of my accounts started backup at:
2024-12-29 01:59:06
and finished at
2024-12-29 05:30:39
its like 15gb account, and of those there are like 13GB emails.
IF i could just make my backups faster and have the possibility to import it again i would like that.
-
All things are possible via scripting. Rsync is recommended for an off-site, off-server backup. You will find that processing e-mail files is LOTS of small files (hundreds of thousands in many cases) and that is actually very slow to process vs. large files with bigger block sizes.
-
Try to use "New Backup system (beta)" to make "Incremental" backups.
Please pay attention it is "beta", however it works fine for me.
-
This wiki page gives a concrete example for rsync'ing your e-mails:
https://wiki.centos-webpanel.com/how-to-manually-import-emails (https://wiki.centos-webpanel.com/how-to-manually-import-emails)
Example of rsync command from remote cPanel to local CWP:
rsync -avz -e "ssh -p 22" root@185.185.185.185:/home/USERNAME/mail/DOMAIN/USERNAME/ /var/vmail/DOMAIN/USERNAME/
* This command needs to be executed on the CWP server, number 22 is ssh port.
So in your case, you would reverse it to go from the CWP server to the backup/disaster recovery server.
Or use the New Backup, as cyberspace recommended. ;)