Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

how to use cli commands

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
elamigosam21
Posts: 23
Joined: Mon Nov 21, 2016 5:47 am

Os: CentOS 6x
Web: apache + nginx
how to use cli commands
  • Quote

Post by 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
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: how to use cli commands
  • Quote

Post by elamigosam21 » Tue Nov 22, 2016 5:22 am

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

http://easycomputertutorial.com/use-ves ... tore-user/
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: how to use cli commands
  • Quote

Post by 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
Top

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

Re: how to use cli commands
  • Quote

Post by 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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: how to use cli commands
  • Quote

Post by 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
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password