• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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