發新話題

cPanel backup script exclusion / cpbackup-exclude.conf

cPanel backup script exclusion / cpbackup-exclude.conf

After version of cPanel (11.24) was released, You can create a file called cpbackup-exclude.conf in your home directory (/home/user-id) to exclude files from a cPanel backup.

Each item (which can be file or directory) to skip must be on it’s only line in this file.

Directories should not have a trailing slash. Each entry must have the full path to the file or directory. This file is only used if you manually run a complete site back up from cPanel. It does not affect the Doreo backup system.

Here is a sample to exclude all the subfolders & files under public_html/temp and public_ftp/temp of user sample:

/home/sample/public_html/temp
/home/sample/public_ftp/temp

In some hosting server (such as bluehost), you would need to use relative path instead of full path in cpbackup-exclude.conf file, like this:

public_html/temp
public_ftp/temp

Hope this information would help you.
----------------------------------------------
cPanel/WHM Documentation Home> AllDocumentation/WHMDocs>WHMHomeScreen>WhmBackupEditAttach
訪客無法瀏覽此圖片或連結,請先 註冊登入會員

Excluding Files from Backup Using cpbackup-exclude.conf

In cPanel/WHM version 11.24, you can exclude certain files and directories from being included in backups. This is accomplished by listing the files or directories in a configuration file called cpbackup-exclude.conf. To do this:

   1. If it does not already exist, create the file cpbackup-exclude.conf in the home directory of the user who owns the files or directories you wish to exclude.
          * For example, type: touch /home/user/cpbackup-exclude.conf
   2. Inside the file, type each item you wish to exclude from backups, one per line. If you enter a directory name, all files inside the directory will be excluded from backups.
          * Directories should not have a trailing slash.
          * Simple shell wildcard characters are allowed for matching control.
          * Here is a sample of the configuration file content:

    core.[0-9]
    *.tmp
    public_html/myfile.txt
    public_html/mydir
    mail

note Note: This process only works for full backups of a website; it does not apply to Home Directory backups.

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。