Jump toUpdate content
How to rescue your data
Whatever your operating system (Windows or Linux), as long as your server does not have a hardware failure, you can recover your files via rescue mode.
- Follow these instructions to start your server in rescue mode (emergency system) via the Dedibox console.
- Log into your server via one of the following methods:
The credentials (username and password) to log into the rescue system are displayed in your Dedibox console.
You are now connected to your Dedibox in rescue mode via a regular user account, therefore you do not have rights to execute all required commands. This is the philosophy of Ubuntu, it is only with the root account that we get full rights to do what we want.
- Switch into the
rootaccount by typing the following command, then press enter:
- Enter the password of the rescue user, displayed in the Dedibox console, and confirm by pressing enter.
For security reasons, the password will not be shown when you type it.
To get access to your data in rescue mode, you have to mount your partitions. If this step succeeds, then you are almost sure to be able to recover your files.
Mount your partitions by entering, as
root user, the command
The partitions are then mounted in the
Some errors such as
the swap cannot be mounted or
many partitions do not exist may display. You can safely ignore these errors.
You can recover your data either by transferring it to the Dedibackup storage space or by downloading it directly to your local computer using the SFTP protocol.
Be careful when editing your data. The
root user has full permissions on each file and as such can perform actions which could be undesirable, including the irreversible deletion of data.
The following procedure shows how to retrieve all the contents of your disk (including all partitions) on your Dedibackup storage space.
Install an FTP client and
screenvia the following command.
screenallows the FTP client to run without your computer having to stay on with Putty open.
apt -y install screen lftp
screenbt typing the following command. Then press enter to launch the application:
Lauch the transfer of your data by running the following command:
lftp -u YOUR_DEDIBACKUP_LOGIN,YOUR_DEDIBACKUP_PASSWORD dedibackup.online.net -e "mirror --reverse /mnt /; exit"
YOUR_DEDIBACKUP_LOGINhas to be replaced with your dedibackup login (typically sd- your server number).
YOUR_DEDIBACKUP_PASSWORDhas to be replaced with your dedibackup password.
If you do not know the password, change it in the console to get a new password.
You should now be able to browse and retrieve all your files by connecting to Dedibackup with any FTP client.
The Dedibackup service is limited to 1000 files per volume. It is recommended to use archives when backing up your data.
The recovery mode supports connection using SSH by default. It is therefore possible to connect from your computer using a SFTP client to recover your files.
In this example we use the client FileZilla
To connect to the server, you are required to complete the following values:
- Host: The server’s IP address
- Identifier: The user name used to connect to the server
- Password: The password of the recovery system
- Port: Port 22
These details are available in your console once the recovery mode is launched.
Your data is located in the folders
You can download your data before you reinstall your server, or before transferring data to another server.
If for any reason you are unable to follow this process, you can contact a certified outsourcer to rescue your data for you.