The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Useless files exclude from backup

Discussion in 'Data Protection' started by leonep, Apr 6, 2017.

Tags:
  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    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:
    Code:
    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:

    Code:
    */.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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    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 ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    leonep likes this.
  5. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    thank you very much
     
Loading...

Share This Page