• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Exclude specific files from the backup

Peter76

New Pleskian
I want to make a complete backup via Tools & Settings>Backup Manager
How I can use "Exclude specific files from the backup" to exclude a specific domain folder like
/var/www/vhosts/<domain>/httpdocs/>folder>/*
This setting did not work :-(
 
Hi there,

Try this (the paths are relative to webspace root)

Code:
**/{folder}/

For example, we use these rules to exclude backup files and a few other paths from our backups:

Code:
**/*backup*.zip
**/*backup*.gz
**/*backup*.tmp
**/*updraft*.zip
**/*back-up*.zip
**/wp-content/cache
**/.well-known/acme-challenge
 
Hello!

1. Create subscription with default document root
------------------------------------------------------------------------
root@a10-52-31-63 httpdocs]# pwd
/var/www/vhosts/d1.a10-52-31-63.qa.plesk.ru/httpdocs
[root@a10-52-31-63 httpdocs]# ls do_not_packup_me
1 2 3
[root@a10-52-31-63 httpdocs]#

------------------------------------------------------------------------
2. Want to exclude from backup /var/www/vhosts/d1.a10-52-31-63.qa.plesk.ru/httpdocs/do_not_packup_me/2
3. Go to Home > Tools & Settings > Back Up the Server and click "Exclude specific files from the backup", type "/httpdocs/do_not_packup_me/2"
4. Perform server backup
5. Check backup content:
[root@a10-52-31-63 d1.a10-52-31-63.qa.plesk.ru]# tar -tzf backup_user-data_1910031034_1910031331.tgz | grep do_not_packup_me
httpdocs/do_not_packup_me/
httpdocs/do_not_packup_me/1
httpdocs/do_not_packup_me/3
[root@a10-52-31-63 d1.a10-52-31-63.qa.plesk.ru]#

As U can see exclude element "/httpdocs/do_not_packup_me/2" is missed in archive.
 
but, what about if i migrate from cpanel? all my content is here for example: /var/www/vhosts/panamahitradio.net/public_html/*

i need to exclude that domain from backup. How i do it?

thank you
 
Back
Top