• 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 BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Exclude directories in a domain from a scheduled serverwide backup

robotic

New Pleskian
User name: robotic

TITLE

Exclude directories in a domain from a scheduled serverwide backup

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Ubuntu 18.04.4 LTS‬, Plesk Obsidian 18.0.24, x86_64

PROBLEM DESCRIPTION

Hi, I want to exclude directories in a domain from a scheduled serverwide backup.
I tried (Plesk root is under /mnt/vhosts/ on that server)

/mnt/vhosts/domain.com/*
/mnt/vhosts/domain.com/httpdocs/*
/domain.com/*
*/domain.com/*
domain.com/httpdocs/*
/domain.com/httpdocs/*

But its still backing up everything.

STEPS TO REPRODUCE

Just plan a scheduled serverwide backup and try to exclude something.

ACTUAL RESULT

Nothing was excluded.

EXPECTED RESULT

Directories should have been excluded.

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
From developer:

it doesn't work with absolute path.
it works only for files inside webspaces.
for case if you create subscription backup, it works only for: /mnt/vhosts/domain.com/<specified path>
for case if you create server backup, it works for each webspace:
/mnt/vhosts/domain1.com/<specified path>
/mnt/vhosts/domain2.com/<specified path>
/mnt/vhosts/domain3.com/<specified path>
...

but if you want to exclude some clients/domains from server backup, you can do it via CLI:
How to create a full server backup excluding some clients/domains?
 
No, sorry, it's just not working, please really have a look at it.
I went deeper into a directory containing thousands of files.
It's actually a subdomain, don't know if that makes a difference.

/mnt/vhosts/sub.domain.com/httpdocs/files/*

But nothing is excluded.
 
Last edited:
From developer:

It doesn't work with absolute path.
Excuse me, but please reread feature description:

You can only exclude files within webspaces. Specify the path or paths relative to the webspace root, separating individual files with commas. Using the mask symbol is allowed (e.g. /somedir/log*).

that means if you put (for example):
Code:
/httpdocs/*
/logs/*
then it'll exclude inside each webspace for server-backup:
Code:
/mnt/vhosts/domain1.com/httpdocs/*
/mnt/vhosts/domain1.com/logs/*
/mnt/vhosts/domain2.com/httpdocs/*
/mnt/vhosts/domain2.com/logs/*
/mnt/vhosts/domain3.com/httpdocs/*
/mnt/vhosts/domain3.com/logs/*
etc...
If you believe that should work with absolute path (e.g. /mnt/vhosts/sub.domain.com/httpdocs/files/*), then please suggest on Plesk Uservoice:
https://plesk.uservoice.com
 
Back
Top