| 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
-
ebox_restore_01.png
(31.3 KB) -
added by jsalamero@… 4 years ago.
-
ebox_restore_02.png
(30.3 KB) -
added by jsalamero@… 4 years ago.
-
ebox_restore_03.png
(32.5 KB) -
added by jsalamero@… 4 years ago.
-
ebox_restore_04.png
(28.3 KB) -
added by jsalamero@… 4 years ago.
-
ebox_restore_00.png
(26.0 KB) -
added by jsalamero@… 4 years ago.
-
ebox_restore_05.png
(19.1 KB) -
added by jsalamero@… 4 years ago.