Question
How to create a full server backup excluding some clients/domains on a Plesk server?
Answer
The feature of excluding a certain domain from a backup via Plesk UI is yet to be implemented. Vote for this feature here. The top-ranked suggestions are likely to be included in future Plesk updates.
As a workaround, use the CLI utility plesk bin pleskbackup
(plesk bin pleskbackup.exe
on Plesk for Windows) to manually create a full server-wide backup (not applicable to scheduled backups).
The following exclude options are available:
- --exclude-reseller=<obj1>,<obj2>,...
Exclude resellers from backup list. Reseller's logins are read from command line, comma-separated.
If no resellers provided, resellers are not backed up. - --exclude-reseller-file=<file>
Exclude resellers listed in file from backup list. File should contain list of reseller's logins one per line. - --exclude-client=<obj1>,<obj2>,...
Exclude clients from backup list. Client's logins are read from command line, comma-separated.
If no clients provided, clients are not backed up. - --exclude-client-file=<file>
Excludes clients listed in file from backup list. File should contain list of client's logins one per line. - --exclude-domain=<obj1>,<obj2>,...
Exclude domains from backup list. Domain's names are read from command line, comma-separated.
If no domains provided, domains are not backed up. - --exclude-domain-file=<file>
Exclude domains listed in file from backup list. File should contain list of domain's names one per line.
Examples:
For Linux
-
Connect to the server via SSH.
-
Back up the Plesk server excluding the domains mentioned (comma-separated):
# plesk bin pleskbackup server --exclude-domain=example.com,example2.com
For Windows
-
Connect to the server via RDP
-
Back up the Plesk server excluding the domains mentioned (comma-separated):
C:> plesk bin pleskbackup.exe --server --exclude-domain example.com,example2.com -v