Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to exclude specific files/directories from a backup in Plesk?
Answer
In order to exclude files from backup click to expand on the section
-
Go to Domains > example.com > Backup Manager > Back Up and use Exclude specific files
-
Only paths relative to the subscription can be used. For example:
CONFIG_TEXT: httpdocs/images/file.jpg
To exclude all files in the directory, use '*' mask, for example:
CONFIG_TEXT: httpdocs/images/*
To exclude a whole directory, specify the name of the directory, for example:
CONFIG_TEXT: httpdocs/images
Note: when excluding specific files from Full Server backup all files specified in Exclude specific files from the backup option on all domains will be excluded. It is not possible exclude specific file from specific domain only.
-
In Tools & Settings > Backup Manager > Back Up and use Exclude specific files from the backup option:
-
Only paths relative to the subscription should be used. For example:
CONFIG_TEXT: httpdocs/images/file.jpg
To exclude all files in the directory, use '*' mask, for example:
CONFIG_TEXT: httpdocs/images/*
To exclude a whole directory, specify name of the directory, for example:
CONFIG_TEXT: httpdocs/images
Comments
3 comments
Is there a way of doing it from the command line? That would be really helpful. Thanks!
Maxim Lazet
Have you even opened the Scheduled Backup settings page (<domain>:8443/admin/backup/schedule/)?
For me (Plesk Obsidian Web Pro Edition 18.0.x, for Linux) there is no "Domains > example.com > Backup Manager". There is a "Backup & Restore", but this has no settings. There is a general "Tools & Settings > Backup Manager", but this has no options to exclude files. Any ideas?
Please sign in to leave a comment.