This document deals with the data recovery procedure from the backup of a dedicated server.
The back up is a safe storage space of your data. It allows you to recover your data, files, documents etc... …
To make sure that the backup of your server is correctly carried out, please check:
Several backup servers exist. To know which one is yours, recover the IP of your server and apply the following rule:
Ip in the form of aaa.bbb.ccc.ddd
213.186.ccc.ddd, with ccc < 40, the backup server is superbackup1.ovh.net
213.186.ccc.ddd, with ccc < 50, the backup server is superbackup3.ovh.net
213.186.ccc.ddd with ccc > 50, the backup server is superbackup2.ovh.net
213.251.ccc.ddd with ccc < 160, the backup server is superbackup4.ovh.net
213.251.ccc.ddd with ccc > 160, the backup server is superbackup5.ovh.net
IP = 184.108.40.206 in the form of aaa.bbb.ccc.ddd, with ccc = 57 so backup server: superbackup2.ovh.net
Here is the process to access your back up data. Use the following command:
/usr/bin/rsync -ova --password-file=/etc/rsync.dir/backup.pass email@example.com::name_module/backup_name/dir/file destination_dir
Replace name_module by the name specified at the time of the installation of your backup, in the form of machinename_number. By default, if you have only one backup, it will be namemachine_1, if you have 2 backups (weekly backup + incremental backup), you will have namemachine_1 and namemachine_2.
If you have snapshots, the procedure is the same, adapt the name of the backup to the one corresponding to the required snapshot.
To list the content of your backup space:
/usr/bin/rsync --password-file=/etc/rsync.dir/backup.pass firstname.lastname@example.org::name_module/
To list the content of your backup:
/usr/bin/rsync --password-file=/etc/rsync.dir/backup.pass email@example.com::name_module/name_of_backup/
Otherwise, here is a small script proposed by a customer to make the task easier, adapt it to your backup type and backup server:
/usr/bin/rsync -roa --password-file=/etc/rsync.dir/backup.pass $MACHINE@$BACKUP::$MACHINE$1 $2
echo "recovered file : $1"
echo "remise file : $2"
Place it in a file such as backup.sh, set it in “chmod u+x” and name it as follows:
./backup.sh /var/named/ovh.net /root/ovh.net.zone
WARNING Never overwrite your new disk with your backup data. Doing this would overwrite the file /etc/fstab and would endanger your dedicated server. In the same way, you must not recover it directly as this will overwrite /etc/fstab, but also /etc/ovhrelease. You risk problems at the time of your next reboot and any updates.
To list the content of your backup from your server:
/usr/bin/rsync --password-file=/etc/rsync.dir/backup.pass `firstname.lastname@example.org::`hostname`