• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

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