(Jan 22) Release 0.9.8-19 with bug fixes available now. Run this command for update v-update-sys-vesta-all

how to use cli commands

Questions regarding the Command Line Interface
CLI
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
elamigosam21
Posts: 5
Joined: Mon Nov 21, 2016 5:47 am

Os: CentOS 7x
Web: apache + nginx

how to use cli commands

Postby elamigosam21 » Mon Nov 21, 2016 5:52 am

hello, i am new to the vestacp system, I am wondering how to use the cli commands, do I have to run something to enable them or do I need to turn on something?

I am trying to restore a user on a new server.
i got the backup on the /home/backup location, but when I do v-restore-user admin /home/backup/admin.2016-11-19.tar
I get a v-restore-user: command not found error

thanks

elamigosam21
Posts: 5
Joined: Mon Nov 21, 2016 5:47 am

Os: CentOS 7x
Web: apache + nginx

Re: how to use cli commands

Postby elamigosam21 » Tue Nov 22, 2016 5:22 am

I was able to come up with a solution, here it is:

http://easycomputertutorial.com/use-vesta-v-restore-user/

skurudo
VestaCP Team
Posts: 7808
Joined: Fri Dec 26, 2014 2:23 pm
Contact:

Re: how to use cli commands

Postby skurudo » Tue Nov 22, 2016 12:59 pm

elamigosam21 wrote:
I get a v-restore-user: command not found error


You can use full paht /usr/local/vesta/bin/some-command
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

mhh2
Posts: 12
Joined: Thu Jul 30, 2015 1:44 pm

Re: how to use cli commands

Postby mhh2 » Mon Mar 06, 2017 1:52 pm

For restore backup on the new server, use

Code: Select all

/usr/local/vesta/bin/v-restore-user admin admin.2016-01-01.tar

But receive Error: backup admin.2016-01-01.tar doesn't exist.
Please help me.

skurudo
VestaCP Team
Posts: 7808
Joined: Fri Dec 26, 2014 2:23 pm
Contact:

Re: how to use cli commands

Postby skurudo » Tue Mar 07, 2017 8:38 am

Code: Select all

mkdir -p /backup

Code: Select all

mv /your-path-to-archive/admin.2016-01-01.tar /backup

Code: Select all

cd /backup

Code: Select all

/usr/local/vesta/bin/v-restore-user admin admin.2016-01-01.tar
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “CLI”



Who is online

Users browsing this forum: No registered users and 1 guest

cron