المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال WHM/CPanel حل مشكلة مساحة الباك اب Backup الكبيرة !



Rise Company
16-06-2022, 05:10
السي بانال WHM/CPanel الباك اب Backup استبعاد الايميلات Exclude mail folder
السي بانال WHM/CPanel حل مشكلة مساحة الباك اب Backup الكبيرة !
Exclude mail folder FROM BACKUP for all accounts
External disk space for backups - How to Exclude Files from Backups
backup account database and public_html but exclude the emails
Backup in other server externalâ›” The backup process failed
excluding emails from whm backup

https://www.rise.company/upload/uploads/165535108871361.png

المشكلة :

I have 200GB space on a VPS server, currently I'm using 140GB, so the disk space is enough, but when the server run the daily backup process it fails because of disk space.
How can I solve this issue ? is there a way to use external drive ? or maybe delete the previous backup "before" the new backup process begin ? or something else..

حل المشكلة :

1- Create backup on Google Drive
قم باخذ باقة كبيرة من جوجل درايف واربطها مع whm backup

https://www.rise.company/upload/uploads/165535096219921.png

2- Remove retained backups from Drive
ثم الغى خيار الاحتفاظ بالباك اب على السيرفر بعد نقله الى جوجل درايف

https://www.rise.company/upload/uploads/165535089277491.png

3- Exclude mail folder from backup for all accounts
يمكنك منع اخذ باك اب للايميلات فهى غير هامة وتاخذ مساحة كبيرة ووقت كبير

Global exclude

https://www.rise.company/upload/uploads/165535079629521.png


nano /etc/cpbackup-exclude.conf

For example, to exclude directory /home/username/softaculous_backups/ and file /home/username/public_html/temp.html use:

The files/folders excluded by default are:

*/.wysiwygPro_*
*/core.[0-9]*
.MirrorSearch
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
access-logs
public_ftp/.ftpquotaFor example, you can exclude the /home/*/tmp/ directories by adding

tmpto the list in /etc/cpbackup-exclude.conf

كذلك

backup-*

بالنسبة للايميل هيكون


mail/*/*/cur/*
mail/*/*/new/*

---------------------------------------------------------------
Local exclude

This option is used to exclude files/folders from the backup for individual user hosted on the server by
adding file/directories name in /home/username/cpbackup-exclude.conf file.

Excluding files and directories from cPanel backups


To exclude specific files and directories from cPanel backups, follow these steps:


[*=center]Using a text editor from the command line, or one of the editors in the cPanel File Manager (https://www.a2hosting.com/kb/cpanel/cpanel-file-features/cpanel-file-manager/cpanel-file-manager-editors),
[*=center]create a file in the user's home directory named cpbackup-exclude.conf.
[*=center]Copy the following text and then paste it into the cpbackup-exclude.conf file:
*.jpa
backup-*.tar.gz
cpmove-*.tar.gz
site-*.tar.gz
*/com_akeeba/backup/*
*/backupbuddy_backups/*
public_html/cache/*
tmp/*
logs/*
softaculous_backups/*
*/wp-content/uploads/wpcf7_captcha/*
*/wp-content/widget-cache/*
*/wp-content/cache/*
*/wptsc-cachedir/*
*/wp-content/ai1wm-backups
This list includes files and directories from various popular backup utilities, such as BackupBuddy and Akeeba. You can add additional lines to this file for any other items that you want to exclude from cPanel backups.
[*=center]Save your changes to the cpbackup-exclude.conf file. All of the files and directories listed in the cpbackup-exclude.conf are now excluded from subsequent cPanel backups.



المرجع:
https://forums.cpanel.net/threads/excluding-emails-from-whm-backup.630971/
https://docs.cpanel.net/knowledge-base/backup/how-to-exclude-files-from-backups/
https://documentation.cpanel.net/display/CKB/How+to+Exclude+Files+From+Backups?_ga=2.223461917. 722940043.1655325130-332332755.1655140328
https://forums.cpanel.net/threads/exclude-mail-folder-from-backup-for-all-accounts.522071/#post-2129551
https://forums.cpanel.net/threads/external-disk-space-for-backups.688561/
https://forums.cpanel.net/threads/backup-in-other-server-external.663969/
https://www.a2hosting.com/kb/cpanel/cpanel-file-features/excluding-files-and-directories-from-cpanel-backups
https://docs.cpanel.net/whm/backup/backup-configuration/
https://dashboard.webhostingmagic.com/knowledgebase/122/How-to-Exclude-cPanel-Files-From-Backups-As-A-WHM-Admin.html?language=norwegian
https://www.plothost.com/kb/exclude-files-folders-cpanel-backups/