Restore single domain from backup file

Post Reply
filip
Posts: 2
Joined: Tue May 13, 2025 2:42 am

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!
User avatar
myVesta
Site Admin
Posts: 998
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

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
filip
Posts: 2
Joined: Tue May 13, 2025 2:42 am

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
Post Reply