Page 1 of 1

Problem with restore

Posted: Tue Aug 15, 2017 9:57 pm
by diegodeangelo
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!

Re: Problem with restore

Posted: Thu Sep 07, 2017 7:35 pm
by stubert
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.

Re: Problem with restore

Posted: Tue Apr 03, 2018 12:36 am
by vesta_mtl
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?