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

Problem with restore

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
diegodeangelo
Posts: 3
Joined: Fri May 19, 2017 12:51 pm

Problem with restore
  • Quote

Post by diegodeangelo » Tue Aug 15, 2017 9:57 pm

I'm using the latest version of vesta and I try to restore a backup of one server to another, but my ssl keys don't restoring using v-restore-user.

Can someone help me?

Thanks!
Top

stubert
Posts: 5
Joined: Fri Jul 21, 2017 4:42 pm

Re: Problem with restore
  • Quote

Post by stubert » Thu Sep 07, 2017 7:35 pm

As you've found out, the vesta restore script is broken when it comes to restoring ssl keys. The good news is that the vesta backup script isn't broken and does backup ssl keys. So the question that you'll be led to is, "How do I manually restore my ssl keys?"

Well, you can do it one of two ways.

Method 1 (For Let's Encrypt Keys):

If you don't care about having the exact same ssl keys as you had before, you can just create new ones in the panel by doing the following:

1. Edit each domain that used to have an SSL key
2. Untick SSL Support
3. Click 'Save' down at the bottom
4. Tick SSL Support and Lets Encrypt Support
5. Click 'Save' again
6. Repeat all steps as necessary for each domain



Method 2 (If you have paid keys from Comodo or any other SSL source):

You have to restore your keys manually one at a time by doing the following:

1. Untar your backup file by issuing the following command

Code: Select all

tar -xf user_backup_file.tar
2. Your ssl keys will be found in the untarred folder inside

Code: Select all

web/domain_name.com/conf/
3. Run the following on each domain that you need to restore ssl keys for

Code: Select all

/usr/local/vesta/bin/v-add-web-domain-ssl username domain_name web/domain_name.com/conf/

That should get you your ssl keys back.
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Problem with restore
  • Quote

Post by vesta_mtl » Tue Apr 03, 2018 12:36 am

Thanks for this advice. However I can't seem to find the keys when it is the admin user I am trying to restore. Is it normal that those don't appear?
Top


Post Reply
  • Print view

3 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