Backing Up Data in Rescue Mode

If your server's operating system will not boot, the Linux Rescue System lets you access your files and copy them to a safe external location using rsync over SSH.

Prerequisites: Your server must be booted into the Linux Rescue System and you need a second reachable server or storage location to copy data to. → Starting rescue mode

Step 1: Mount the Server's Filesystem

Make the files on the broken server's drive accessible inside the rescue environment.

Identify your main partition using lsblk, then mount it to /mnt:

Terminal
lsblk

Mount the partition — replace /dev/sda3 with your actual partition name:

Terminal
mount /dev/sda3 /mnt

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

Step 2: Understand the rsync Command

rsync copies data securely over SSH — efficiently and with full file attribute preservation.

The basic structure of the rsync command is:

Terminal
rsync [options] /path/to/source/ user@destination_server:/path/to/destination/

For a full backup, use the following flags:

FlagPurpose
-aArchive mode — preserves permissions, ownership, symlinks, and timestamps.
-vVerbose — shows which files are being transferred.
-zCompress — reduces bandwidth usage during transfer.
--progressShows a progress indicator for each file being transferred.

Step 3: Run the Backup

Copy the entire contents of your mounted drive to the destination server.

This command copies everything under /mnt (your server's drive) to a /backup folder on the destination server — adjust the IP address, username, and destination path accordingly:

Terminal
rsync -avz --progress /mnt/ user@backup_server_ip:/backup/

You will be prompted for the SSH password of the user on the destination server. Transfer time depends on the amount of data and your network speed.

Step 4: Next Steps

Your data is now safely backed up — decide how to proceed with the server.

Once the rsync process completes, your data is safely stored on the destination server. You can now either attempt to repair the server from within rescue mode, or cancel rescue mode and proceed with a fresh OS installation.

Repair the server
Stay in rescue mode and fix the issue — e.g. repair GRUB, reset a password, or fix a broken configuration.
Exit rescue mode
Cancel rescue mode via the PowerPanel and proceed with a fresh OS installation. → Cancelling rescue mode

Further Documentation

For the full reference of all rsync options, refer to the official rsync documentation.