Backing Up Data in Rescue Mode

If your server's operating system will not boot, you can use the Linux Rescue System to access your files and back them up to a safe, external location. The most powerful tool for this is rsync, which can efficiently copy large amounts of data over the network.


Prerequisites:
  • Your server booted into the Linux Rescue System. → How to Start Rescue Mode
  • A second, functioning server or storage location (the "backup destination") that is accessible via SSH from the rescue environment.

Step-by-Step Guide

First, you need to mount the hard drive of your broken server to make the files accessible.

  1. Log into the rescue environment via SSH.
  2. Identify your main partition using lsblk (e.g., /dev/sda3).
  3. Mount the partition to the /mnt directory.
Mount Filesystem
# Replace /dev/sda3 with your actual partition mount /dev/sda3 /mnt

Your server's files are now accessible under the /mnt directory.