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. Vote to implement features on Plesk User Voice Portal.
-
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
38 comments
So can not understand, please help. How to exclude:
/var/www/vhosts/domain1.com/folder/folder2/* - only files in folder2 tha in subfolder folder on domain2.com
/var/www/vhosts/domain1.com/folder2/* - only files in folder2 on domain1.com
/var/www/vhosts/domain2.com/folder2/* - only files in folder2 on domain2.com
/var/www/vhosts/domain3/* - completely
All these rules must work at one schudeled backup task
So what about help from support?
Topic has been updated... "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. Vote to implement features on Plesk User Voice Portal." :-(
@Lrnt
Is it a joke??? Really in 2021 year???
Maybe you would also say, that i can not exclude domain complete? Like /var/www/vhosts/domain3/* - completely
If yes i would say big thanks to Plesk! )))
I hope you notice my sad emoji at the end. I feel the same as you: in 2021, not being able to resolve this issue is very sad.
How do I exclude a path from the server-side, so that later backups I don't have to add that path to the exclude entry?
Like Lrnt and Michael M. Im looking for a possibility to exclude whole domains from backup.
There is a Vote going on, to implement that Feature: https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/35420890-exclude-domains-from-backup-in-ui
Fabian L. Already voted for this months ago ;)
Please sign in to leave a comment.