Halea
Well-Known Member
- Joined
- Aug 12, 2016
- Messages
- 1,130
- Reaction score
- 874
1) Login into your RackNerd VPS account at https://nerdvm.racknerd.com/login.php
2) Pick your VPS server from the list by clicking on its hostname or the corresponding "Manage" button.
3) When the dashboard for the VPS shows up, click on the "VNC" button.
4) On the VNC Viewer page click on "HTML5 VNC Client SSL". (Make sure that you allow web browser window pop-up for nerdvm.racknerd.com)
Alternatively, you can pick the IP address, access port number and temporary password from the screen and use your favorite VNC client to access your machine. Note that this is host level access with a different IP address and user credentials than what you setup inside your VPS. It works as if you are at the physical console of your virtual machine even if its ssh access is damaged or not available.
5) Your web browser will open an HTML5 window with an SSH connection to your VPS' main console.
6) Login with your VPS machine's root credentials.
7) Once logged in, run the command "shutdown -Ph now" to properly shut off your VPS. When done, the VNC window will say that the server is disconnected.
8) Go back to the web browser's VNC Viewer page and click on "Back", which will take you to the VPS dashboard.
9) Next, click on the "Rescue" button, which will take you to a new page, allowing you to select the kernel to be used for the rescue mode.
10) Just use the default kernel shown in the selector as it's the main kernel installed by your VPS at configuration time. If you go into rescue mode for system troubleshooting you can change it for something different, but here we are dropping into rescue just to do a backup. Click on "Enable Rescue Mode". Then confirm in the pop-up notification window that you want to proceed.
11) At this stage you should see SSH connection credentials for root with a hard to guess password. Note that the IP address is your VPS' own static IP.
12) In order to backup your VPS' HDD in its entirety (as a byte per byte image copy), open a terminal on your internet connected local machine and run the following command (locally, not on your VPS instance):
ssh root@<YOUR_VPN_IP> dd if=/dev/vda bs=1M oflag=sync | sudo dd of=<FULL_PATH_&_FILE_NAME_FOR_BACKUP> bs=1M oflag=sync status=progress
Note: In order to restore a backup, run the steps #1 through #11, then use the following command on your local computer (not on your VPS instance):
sudo dd if=<FULL_PATH_&_FILE_NAME_TO_RESTORE> bs=1M oflag=sync status=progress | ssh root@<YOUR_VPN_IP> dd of=/dev/vda bs=1M oflag=sync
13) When the backup or restore operation is complete, exit the rescue mode and reboot your VPS into normal operational mode.
PS:
The steps #1 through #7 are the long way to shut down properly your VPS, but it's a great way to become fully acquainted with the RackNerd system dashboard. (At step #3 you could very well click on "Shutdown" instead of invoking VNC and get the host to power off your VPS through an ACPI call. Or, you could simply ssh into your VPS your favorite way and shut it off using your favorite command.)
The steps #8 through #11 are to start the rescue mode on your VPS. This mode basically powers up your VPS with a generic minimal Linux OS, so that you can do troubleshooting on your machine's HDD while the system installed on the said HDD is not active. This is what you need in order to do your backup safely, as you wouldn't want data to be changed while the transfer out is in progress.
The step #12 makes the actual backup or restore operation to take place. Those are commands run on your local machine, in a standard terminal where ssh and dd are used.
The backup command starts a remote dd session through ssh and diverts the output to the local machine where another dd instance forwards the incoming data stream into a local file.
The restore command on the other hand, starts a local dd instance whose output gets forwarded to the remote machine's dd input via ssh and the resulting stream gets written to the character/bloc device /dev/vda.
With both commands, status=progress allows for real time visualization of the copy progress. oflag=sync is to ensure that the last (possibly fractional) data bloc is flushed onto the device without delay.
2) Pick your VPS server from the list by clicking on its hostname or the corresponding "Manage" button.
3) When the dashboard for the VPS shows up, click on the "VNC" button.
4) On the VNC Viewer page click on "HTML5 VNC Client SSL". (Make sure that you allow web browser window pop-up for nerdvm.racknerd.com)
Alternatively, you can pick the IP address, access port number and temporary password from the screen and use your favorite VNC client to access your machine. Note that this is host level access with a different IP address and user credentials than what you setup inside your VPS. It works as if you are at the physical console of your virtual machine even if its ssh access is damaged or not available.
5) Your web browser will open an HTML5 window with an SSH connection to your VPS' main console.
6) Login with your VPS machine's root credentials.
7) Once logged in, run the command "shutdown -Ph now" to properly shut off your VPS. When done, the VNC window will say that the server is disconnected.
8) Go back to the web browser's VNC Viewer page and click on "Back", which will take you to the VPS dashboard.
9) Next, click on the "Rescue" button, which will take you to a new page, allowing you to select the kernel to be used for the rescue mode.
10) Just use the default kernel shown in the selector as it's the main kernel installed by your VPS at configuration time. If you go into rescue mode for system troubleshooting you can change it for something different, but here we are dropping into rescue just to do a backup. Click on "Enable Rescue Mode". Then confirm in the pop-up notification window that you want to proceed.
11) At this stage you should see SSH connection credentials for root with a hard to guess password. Note that the IP address is your VPS' own static IP.
12) In order to backup your VPS' HDD in its entirety (as a byte per byte image copy), open a terminal on your internet connected local machine and run the following command (locally, not on your VPS instance):
ssh root@<YOUR_VPN_IP> dd if=/dev/vda bs=1M oflag=sync | sudo dd of=<FULL_PATH_&_FILE_NAME_FOR_BACKUP> bs=1M oflag=sync status=progress
Note: In order to restore a backup, run the steps #1 through #11, then use the following command on your local computer (not on your VPS instance):
sudo dd if=<FULL_PATH_&_FILE_NAME_TO_RESTORE> bs=1M oflag=sync status=progress | ssh root@<YOUR_VPN_IP> dd of=/dev/vda bs=1M oflag=sync
13) When the backup or restore operation is complete, exit the rescue mode and reboot your VPS into normal operational mode.
PS:
The steps #1 through #7 are the long way to shut down properly your VPS, but it's a great way to become fully acquainted with the RackNerd system dashboard. (At step #3 you could very well click on "Shutdown" instead of invoking VNC and get the host to power off your VPS through an ACPI call. Or, you could simply ssh into your VPS your favorite way and shut it off using your favorite command.)
The steps #8 through #11 are to start the rescue mode on your VPS. This mode basically powers up your VPS with a generic minimal Linux OS, so that you can do troubleshooting on your machine's HDD while the system installed on the said HDD is not active. This is what you need in order to do your backup safely, as you wouldn't want data to be changed while the transfer out is in progress.
The step #12 makes the actual backup or restore operation to take place. Those are commands run on your local machine, in a standard terminal where ssh and dd are used.
The backup command starts a remote dd session through ssh and diverts the output to the local machine where another dd instance forwards the incoming data stream into a local file.
The restore command on the other hand, starts a local dd instance whose output gets forwarded to the remote machine's dd input via ssh and the resulting stream gets written to the character/bloc device /dev/vda.
With both commands, status=progress allows for real time visualization of the copy progress. oflag=sync is to ensure that the last (possibly fractional) data bloc is flushed onto the device without delay.
Last edited: