We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Problem with restore
-
- Posts: 3
- Joined: Fri May 19, 2017 12:51 pm
Problem with restore
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!
Can someone help me?
Thanks!
Re: Problem with restore
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
2. Your ssl keys will be found in the untarred folder inside
3. Run the following on each domain that you need to restore ssl keys for
That should get you your ssl keys back.
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
Code: Select all
web/domain_name.com/conf/
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
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?