Problem with restore

Questions regarding the Command Line Interface
Posts: 3
Joined: Fri May 19, 2017 12:51 pm

Problem with restore

Postby 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?


Posts: 3
Joined: Fri Jul 21, 2017 4:42 pm

Re: Problem with restore

Postby 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


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/

That should get you your ssl keys back.

Return to “CLI”

Who is online

Users browsing this forum: No registered users and 1 guest