Author Topic: Backup without compressing  (Read 89 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Backup without compressing
« 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?

Offline
*
Re: Backup without compressing
« Reply #1 on: December 29, 2024, 07:29:12 PM »
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.

Offline
*****
Re: Backup without compressing
« Reply #2 on: December 30, 2024, 12:28:05 AM »
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.

Offline
***
Re: Backup without compressing
« Reply #3 on: December 30, 2024, 11:56:46 AM »
Try to use "New Backup system (beta)" to make "Incremental" backups.

Please pay attention it is "beta", however it works fine for me.

Offline
*****
Re: Backup without compressing
« Reply #4 on: December 30, 2024, 05:44:02 PM »
This wiki page gives a concrete example for rsync'ing your e-mails:
https://wiki.centos-webpanel.com/how-to-manually-import-emails

Example of rsync command from remote cPanel to local CWP:
Code: [Select]
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. ;)