Page 1 of 1

v-restore-user

Posted: Fri Jan 11, 2019 8:27 pm
by gogoturk
Hi, I know using this command but I need only DNS restore. I need a sample using.

v-restore-user USER BACKUP [WEB] [DNS] [MAIL] [DB] [CRON] [UDIR] [NOTIFY]

I try v-restore-user admin admin.xxxxxxx.tar DNS but it restore DNS, DB, etc...

it's here response;

[root@server backup]# v-restore-user admin admin.2019-01-11_05-14-24.tar DNS

-- WEB --

-- DNS --
2019-01-11 21:13:10 c********.com.tr
2019-01-11 21:13:10 c************.com

-- MAIL --

-- DB --
2019-01-11 21:13:10 admin_oc

-- CRON --
2019-01-11 21:13:13 20 cron jobs

-- USER FILES --
2019-01-11 21:13:14 .bash_logout
2019-01-11 21:13:14 .bash_profile
2019-01-11 21:13:14 .bashrc
2019-01-11 21:13:14 .pki
2019-01-11 21:13:14 tmp


Why it restore DB and others. What is my wrong? Thanxxx.

Re: v-restore-user

Posted: Sat Jan 12, 2019 9:10 pm
by skamasle
Hi

I never user single restoration, but you can try it from GUI and it should work

I check that script and as I understand maybe you need specify NO in options

v-restore-user USER BACKUP no dns no no no

But im not sure how works from cli exactly, I need check that function

Re: v-restore-user

Posted: Tue Jan 15, 2019 12:38 pm
by gogoturk
Thanx for answer I will try and share my experience soon.

Re: v-restore-user

Posted: Tue Jan 15, 2019 12:41 pm
by gogoturk
It's done. I have tried "v-restore-user admin admin.2019-01-15_05-10-35.tar no yes no no no no no" and it's works. Thank you.

Re: v-restore-user

Posted: Tue Jan 15, 2019 1:08 pm
by skamasle
gogoturk wrote: Tue Jan 15, 2019 12:41 pm It's done. I have tried "v-restore-user admin admin.2019-01-15_05-10-35.tar no yes no no no no no" and it's works. Thank you.
Nice, this will be in docs.

Re: v-restore-user

Posted: Tue Feb 18, 2020 11:40 am
by gricenko.mihail
gogoturk wrote: Tue Jan 15, 2019 12:41 pm It's done. I have tried "v-restore-user admin admin.2019-01-15_05-10-35.tar no yes no no no no no" and it's works. Thank you.
Actually right format for this command is:

Code: Select all

v-restore-user admin admin.2019-01-15_05-10-35.tar no '*' no no no no no
If you want to specify only several parts to restore you need to use '*' (asterisk in quotes) placeholder, it's mean you restoring all components of selected service, otherwise you need to specify coma separated list of components for service.

Code: Select all

v-restore-user admin admin.2019-01-15_05-10-35.tar 'domain1.com,domain2.com' '*' no no no no no