Useless files exclude from backup
hi,
I need to save some space from my backup destination.
i use normal backup /usr/local/cpanel/bin/backup
in the account folders i have a lot of files:
in the global exclusion file /etc/cpbackup-exclude.conf i have put:
i have also disabled backup of suspended account, access logs and bandwidth the question is : can i save more space ? thanks
lrwxrwxrwx 1 abcabcabc abcabcabc 33 Nov 16 2014 access-logs -> /usr/local/apache/domlogs/abcabcabc/
-rw-r--r-- 1 abcabcabc abcabcabc 18 Oct 16 2014 .bash_logout
-rw-r--r-- 1 abcabcabc abcabcabc 176 Oct 16 2014 .bash_profile
-rw-r--r-- 1 abcabcabc abcabcabc 124 Oct 16 2014 .bashrc
drwxr-xr-x 2 abcabcabc abcabcabc 4096 Aug 25 2016 cache/
-rw------- 1 abcabcabc abcabcabc 21 Oct 28 2015 .contactemail
drwxr-xr-x 3 abcabcabc abcabcabc 4096 Apr 6 09:33 .cpaddons/
drwx------ 5 abcabcabc abcabcabc 4096 Mar 30 18:40 .cpanel/
-rw-r----- 1 abcabcabc abcabcabc 1 Dec 20 2014 cpbackup-exclude.conf
drwx------ 4 abcabcabc abcabcabc 4096 Nov 9 16:45 .cphorde/
drwxr-x--- 3 abcabcabc mail 4096 May 30 2016 etc/
drwxr-x--- 2 abcabcabc nobody 4096 Nov 16 2014 .htpasswds/
-rw------- 1 abcabcabc abcabcabc 345 Feb 16 12:16 .lastlogin
drwx------ 2 abcabcabc abcabcabc 4096 Apr 1 14:19 logs/
drwxr-x--x 10 abcabcabc abcabcabc 4096 Mar 27 14:34 mail/
-rw-r--r-- 1 abcabcabc abcabcabc 248 Feb 9 22:47 php.ini
drwxr----- 3 abcabcabc abcabcabc 4096 Feb 16 12:19 .pki/
drwxr-x--- 3 abcabcabc abcabcabc 4096 Nov 16 2014 public_ftp/
drwxr-x--- 18 abcabcabc nobody 4096 Apr 4 18:01 public_html/
drwxr-xr-x 2 abcabcabc abcabcabc 4096 Nov 29 10:13 .razor/
drwx--x--x 4 abcabcabc abcabcabc 4096 Feb 9 22:45 .softaculous/
drwx------ 2 abcabcabc abcabcabc 4096 Aug 14 2016 .spamassassin/
drwxr-xr-x 5 abcabcabc abcabcabc 4096 Feb 20 05:15 ssl/
drwx------ 2 abcabcabc abcabcabc 4096 Dec 6 12:59 .subaccounts/
drwxr-xr-x 8 abcabcabc abcabcabc 4096 Feb 16 12:19 tmp/
drwx------ 2 abcabcabc abcabcabc 4096 Dec 17 2014 .trash/
lrwxrwxrwx 1 abcabcabc abcabcabc 11 Nov 16 2014 www -> public_html/in the global exclusion file /etc/cpbackup-exclude.conf i have put:
*/.wysiwygPro_*
*/core.[0-9]*
.MirrorSearch
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
access-logs
public_ftp/.ftpquota
backup-*tar.gz
i have also disabled backup of suspended account, access logs and bandwidth the question is : can i save more space ? thanks
-
the question is : can i save more space ?
Hello, You are welcome to exclude additional files or directories, but doing so is a matter of personal preference. Generally, you should backup as much of the account as you can to ensure it's available in the event a restore is required. Thank you.0 -
thanks for reply, you are right ! In the future could change the scenario and some directories not needed now could be useful in backups. So it's better to not change.Anyway there is some trash/tmp ? 0 -
Anyway there is some trash/tmp ?
Hello, The following option is available under the "System" tab in "WHM >> Tweak Settings" if you'd like to purge File Manage trash after a specific time: Age, in days, of content to purge from users" File Manager Trash Per it's description: This setting determines the minimum age of files that the system will automatically purge from .trash folders in user home directories. A value of 0 configures the server to purge all files from every user"s .trash folder, regardless of age. NOTE: This setting only purges files that users delete through cPanel"s File Manager interface ( Home >> Files >> File Manager ). Additionally, in "WHM >> Mailserver Configuration", the following option is available: Auto Expunge Trash Per it's description: When this option is enabled, the system will remove messages in the Trash and Deleted Messages folders based on the expiration time configured below. These options might help to clear up some disk space used by deleted files or emails. Thank you.0 -
thank you very much 0
Please sign in to leave a comment.
Comments
4 comments