Applicable to:
- SolusVM 2
Question
How to restore SolusVM 2 VPS from backup on another Compute Resource
Answer
This functionality is yet to be implemented in SolusVM 2. There is a request for adding such functionality with ID #SIO-3194 which is planned to be implemented in future SolusVM 2 updates.
As a workaround use the following instruction:
- Connect to SolusVM 2 Management Node via SSH
- Backup SolusVM 2 database
-
Access SolusVM 2 database with the command:
# docker exec -it $(docker ps -q -f name=solus_postgres | head -n1) psql -U$(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_USER | awk -F "=" {'print $2'}) $(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_DB | awk -F "=" {'print $2'})
-
Change the CR of the corresponding VPS:
MYSQL_LIN: UPDATE compute_resource_vms SET compute_resource_id=CRID WHERE id=VPSID;
MYSQL_LIN: UPDATE compute_resource_vms SET storage_id=NEW_STORAGE_ID WHERE id=VPSID;CRID is a new CR's ID. You can find it at SolusVM 2 > Compute Resources(ID column)
NEW_STORAGE_ID is the storage ID of the new CR which you can find at SolusVM 2 > Compute Resources > Compute Resource > Storage tab(ID column)
VPSID is a Virtual Server ID. You can find it at SolusVM 2 > Virtual Servers(ID column) - Login to SolusVM 2 admin panel
- Browse to SolusVM 2 > Virtual Servers > VPS > Reinstall and reinstall the VPS with any OS
-
Browse to SolusVM 2 > Virtual Servers > VPS > Backups and click Restore icon
Comments
0 comments
Please sign in to leave a comment.