• 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.

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