Announcement

Collapse
No announcement yet.

How to Exclude Files From Backups

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Exclude Files From Backups

    Overview

    To exclude files or directories from your user backups, perform either of the following actions:

    1.Exclude the files from all users' backups
    2.Exclude the files from an individual user's backups.

    The global and local exclude files apply to the account backups that you manage in WHM's Backup section (Home >> Backup) and the Download or Generate a Full Website Backup feature in cPanel's Backups interface (Home >> Files >> Backups).

    Note:
    If you initiate a Home Directory backup in cPanel's Backups interface (Home >> Files >> Backups), the global and local exclude files do not affect the contents of the backup file.

    Global exclude file

    To exclude files or directories from your backups for all user accounts, add those files or directories to the /etc/cpbackup-exclude.conf file.

    The backup system excludes the following files and directories for all users' backups by default:
    1)*/.wysiwygPro_*
    2)*/core.[0-9]
    3).MirrorSearch
    4).cpan
    5).cpanel/caches
    6).cpanel/datastore
    7).cpcpan
    8 ).sqmailattach
    9)access-logs
    10)public_ftp/.ftpquota

    Local exclude file

    To exclude files or directories from an individual user's backups, add the files or directories to exclude to the cpbackup-exclude.conf file in the user's directory, one per line.

    If the file does not already exist, you must create it. To do this, run the following command:
    touch /home/username/cpbackup-exclude.conf

    Notes:
    1)In this example, username represents the name of the user who owns the files or directories.
    2)If you enter a directory name, the backup system excludes all of the files that are inside the directory.
    3)Do not include leading or trailing characters of any kind, such as slashes (/) or periods (.).

    Regards,
    Dexter
    http://webhosting.uk.com
Working...
X