Version 3 (modified by jsalamero@…, 4 years ago) (diff)

--

Restore

Create a mount point for the backup and mount it:

% mkdir /mnt/backup
% mount -t ext3 /dev/sdb1 /mnt/backup

Create a mount point and mount the partition. Then delete everything there:

% mkdir /mnt/ebox
% mount -t ext3 /dev/ebox/root /mnt/ebox
% rm -fr /mnt/ebox/*

Do the same with var:

% mkdir /mnt/ebox/var
% mount -t xfs /dev/ebox/var /mnt/ebox/var
% rm -fr /mnt/ebox/var/*

Restore the data:

% cd /mnt/backup/ebox-backup
% cp -ra * /mnt/ebox/

Create dirs not included in back and clean up /var/run:

% mkdir /mnt/ebox/dev
% mkdir /mnt/ebox/sys
% mkdir /mnt/ebox/proc
% rm -fr /mnt/ebox/var/run/*

Umount everything and exit:

% umount /mnt/ebox/var
% umount /mnt/ebox
% exit

Reboot into the restored system.

Attachments