Page 1 of 1

Restore single domain from backup file

Posted: Tue Apr 21, 2026 12:59 am
by filip
I have a user with several domains.
If I want to separate them into user1 and user2, can I do something like this:

v-restore-user user2 user1.2026-04-21_05-10-35.tar 'user2domain.com'

I saw this, but it’s not working:
https://forum.vestacp.com/viewtopic.php?t=18149#p81042

I know I can do it manually, but if this is an option, then great :D
Thanks!

Re: Restore single domain from backup file

Posted: Tue Apr 21, 2026 12:18 pm
by myVesta
I've never tried restoring into different user, so I'm skeptical that it could work.

This should work:

Code: Select all

v-restore-user test test.2021-11-17_14-55-20.tar 'wp1.example.com,wp3.example.com' 'wp1.example.com,wp3.example.com' 'wp1.example.com,wp3.example.com' 'test_wp,test_wp3' 'no' 'no'  yes

Re: Restore single domain from backup file

Posted: Mon May 04, 2026 12:53 am
by filip
It works partially. It causes another problem.
How is the backup user.2026-05-03_23-52-55.tar - related to the username user. When user2 is created (in order to extract domain2.com for user2) it does not allow -> Error: permission denied