Question
How to create a full server backup excluding some clients/domains in a server with Plesk?
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.
Use the CLI utility plesk bin pleskbackup
(pleskbackup.exe
on Plesk for Windows) to do so.
Note: such a way is 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 a selected reseller without several subscriptions belonging to them or their customers:
# plesk bin pleskbackup server –exclude-domain=<name1>,<name2>,<name n>
For Windows
-
Connect to the server via RDP
-
Back up the Plesk server excluding the domains listed in the file domains.txt
C:> plesk bin pleskbackup.exe server –exclude-client-file=domains.txt -v