Recovering Data via SFTP

Last Updated: Thu, May 11, 2017
Linux Guides System Admin

Recovering Data via SFTP

In cases where the installed OS encounters an error that does not allow the OS to boot normally it may be necessary to retrieve data from this instance prior to attempting repairs or re-installation. This process uses a live CD to make the files accessible via SFTP.

  1. Go to -> Servers -> Your VPS Name -> Settings -> Custom ISO

  2. Under ISO Library select Finnix - 111 x86

  3. Click Attach ISO and Reboot

  4. Open the Console (computer icon in top right of server information page).

Note that the console is temporally unavailable during the restart to attach the ISO. If this window is blank or shows error please close, wait 10 seconds and launch again.

  1. Press enter to select Boot Finnix (64-bit). You must do this within 60 seconds otherwise the VPS will try to boot from the primary disk.

  2. Once at the root@tty1:~# run the following command to check your disk to ensure that there are no errors and/or repair any errors in the filesystem:

    fsck -y /dev/vda1
  3. Run the following commands to set the password, enable sftp, and mount your VPS disk:

    service ssh start
    mount /dev/vda1 /mnt
  4. You can now connect to your VPS using SFTP client software on your local PC.

The most popular client is Filezilla. When connecting you will use:

* **Host:** _Your VPS IP_

* **Username:** _root_

* **Password:** _The password you set in the prior step_

* **Port:** _22_

* **Protocol:** _SFTP_

The files from your VPS will be located under the **/mnt** folder.
  1. Once the recovery is complete, you can return to the Custom ISO page and click "Remove ISO" to unmount the ISO.

Want to contribute?

You could earn up to $600 by adding new articles.