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

How to restore data only Virtual host content in command line

C

ChonlathitW

Guest
I am got a problem with r57shell last few day.
Hacker copy all index file to all my domain ../vhosts/domain../httpdocs

Now i can restore data By this step in plesk control.
Go to domain for restore.
1. Backup Manager
2. click backup file etc.
Nov 28, 2010 04:04 AM backup_mydomain.com_info_1011280404.xml
3. Restoration options
choose "Domain configuration" and "Virtual host content".

If conflicts occur during the restoration
choose "Ask me what to do"

4. and click restore.
will result like this

Conflicts Occurred During the Restoration Process

Conflicts
Virtual host of mydomaincom
Cannot restore Virtual host: Virtual host '' already exists in Parallels Plesk Panel


talks of mydomaincom
Cannot restore subdomain: subdomain 'talks' already exists in Parallels Plesk Panel

5. and Next
Resolution Rules for Restoration Conflicts

Timing Conflicts
choose "Use configuration and data from backup"

Resource Usage Conflicts
choose "Allow overuse"

Configuration Conflicts
choose "Allow overuse"

6. and Next wait until finish.

But if I want to restore data like this step without mysql, mail, user pass, etc. need only Virtual host content in command line it can be?
I read in http://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.5-backup-cli-guide
I see option "-conflicts-resolution" how to use this? in document it not clear for me.
Someone can example to for conflicts-resolution config to restore only domain Virtual host content please.

I just test this
/usr/local/psa/bin/pleskrestore --restore backup_info_1011290404.xml -map backup_skel_1011290404.tgz -level domains -filter list:mydomain.com -conflicts-resolution conflict_resolution_rules

and
conflict_resolution_rules is

<?xml version="1.0" encoding="UTF-8"?>
<conflict-resolution-rules>
<policy>
</policy>
<rule conflict-guid="" conflict-id="0">
<resolution>
<overwrite></overwrite>
</resolution>
</rule>
</conflict-resolution-rules>

It restore everything :(

Thanks in advance.
 
Back
Top