• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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