|
|
6f74ef |
diff --git a/doc/user-guide/12-BLOCKCLONE.adoc b/doc/user-guide/12-BLOCKCLONE.adoc
|
|
|
6f74ef |
index 061f0f49..2d4e0ed1 100644
|
|
|
6f74ef |
--- a/doc/user-guide/12-BLOCKCLONE.adoc
|
|
|
6f74ef |
+++ b/doc/user-guide/12-BLOCKCLONE.adoc
|
|
|
6f74ef |
@@ -40,17 +40,17 @@ First we need to set some global options in _local.conf_,
|
|
|
6f74ef |
In our small example backups will be stored in _/mnt/rear_ directory
|
|
|
6f74ef |
on BACKUP_URL NFS server.
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat local.conf
|
|
|
6f74ef |
OUTPUT=ISO
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
BACKUP_OPTIONS="nfsvers=3,nolock"
|
|
|
6f74ef |
BACKUP_URL=nfs://<hostname>/mnt/rear
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now we will define variables that will apply only for targeted block device
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat alien.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE # Define BLOCKCLONE as backup method
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="alien" # Name of image file
|
|
|
6f74ef |
@@ -66,16 +66,16 @@ BLOCKCLONE_MBR_FILE="alien_boot_strap.img" # Output filename for b
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="alien_partitions.conf" # Output filename for partition configuration
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_ALLOW_MOUNTED="yes" # Device can be mounted during backup (default NO)
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running backup
|
|
|
6f74ef |
Save partitions configuration, bootstrap code and create actual backup of /dev/sdc1
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C alien mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running restore from ReaR restore/recovery system
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C alien restoreonly
|
|
|
6f74ef |
Restore alien.dd.img to device: [/dev/sdc1] # User is always prompted for restore destination
|
|
|
6f74ef |
Device /dev/sdc1 was not found. # If destination does not exist ReaR will try to create it (or fail if BLOCKCLONE_SAVE_MBR_DEV was not set during backup)
|
|
|
6f74ef |
@@ -102,7 +102,7 @@ Device Boot Start End Sectors Size Id Type
|
|
|
6f74ef |
The partition table has been altered.
|
|
|
6f74ef |
Calling ioctl() to re-read partition table.
|
|
|
6f74ef |
Syncing disks.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Summary
|
|
|
6f74ef |
In first example we have run backup of /dev/sdc1 partition and stored it on NFS
|
|
|
6f74ef |
@@ -127,37 +127,37 @@ In next example we will do backup/restore using BLOCKCLONE and `ntfsclone`
|
|
|
6f74ef |
of Linux (installed on /dev/sda) and Windows 10 (installed on /dev/sdb).
|
|
|
6f74ef |
|
|
|
6f74ef |
TIP: You can locate right disk devices using `df` and `os-prober`
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# df -h /boot
|
|
|
6f74ef |
Filesystem Size Used Avail Use% Mounted on
|
|
|
6f74ef |
/dev/sda1 10G 4.9G 5.2G 49% / # Linux is most probably installed on /dev/sda
|
|
|
6f74ef |
|
|
|
6f74ef |
# os-prober
|
|
|
6f74ef |
/dev/sdb1:Windows 10 (loader):Windows:chain # Windows 10 is most probably installed on /dev/sdb
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
First we will configure some ReaR backup global options
|
|
|
6f74ef |
(similar to link:12-BLOCKCLONE.adoc#1-backuprestore-of-arbitrary-block-device-with-blockclone-and-dd-on-nfs-server[first example]
|
|
|
6f74ef |
we will do backup/restore with help of NFS server).
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat local.conf
|
|
|
6f74ef |
OUTPUT=ISO
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
BACKUP_OPTIONS="nfsvers=3,nolock"
|
|
|
6f74ef |
BACKUP_URL=nfs://<hostname>/mnt/rear
|
|
|
6f74ef |
REQUIRED_PROGS+=( ntfsclone )
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now we will define backup parameters for Linux.
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat base_os.conf
|
|
|
6f74ef |
this_file_name=$( basename ${BASH_SOURCE[0]} )
|
|
|
6f74ef |
LOGFILE="$LOG_DIR/rear-$HOSTNAME-$WORKFLOW-${this_file_name%.*}.log"
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="backup-${this_file_name%.*}"
|
|
|
6f74ef |
BACKUP_PROG_EXCLUDE+=( '/media/*' )
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Our Windows 10 is by default installed on two separate partitions
|
|
|
6f74ef |
(partition 1 for boot data and partition 2 for disk C:),
|
|
|
6f74ef |
@@ -165,7 +165,7 @@ Our Windows 10 is by default installed on two separate partitions
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows boot partition:
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_boot.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="windows_boot"
|
|
|
6f74ef |
@@ -179,10 +179,10 @@ BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
BLOCKCLONE_SAVE_MBR_DEV="/dev/sdb"
|
|
|
6f74ef |
BLOCKCLONE_MBR_FILE="windows_boot_strap.img"
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="windows_partitions.conf"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows data partition (disk C:\):
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_data.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="windows_data"
|
|
|
6f74ef |
@@ -196,35 +196,35 @@ BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
BLOCKCLONE_SAVE_MBR_DEV="/dev/sdb"
|
|
|
6f74ef |
BLOCKCLONE_MBR_FILE="windows_boot_strap.img"
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="windows_partitions.conf"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running backup
|
|
|
6f74ef |
First we will create backup of Linux. `mkbackup` command will create bootable
|
|
|
6f74ef |
ISO image with ReaR rescue/recovery system that will be later used for
|
|
|
6f74ef |
booting broken system and consecutive recovery.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_os mkbackup
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now we create backup of Windows 10 boot partition. Command `mkbackuponly`
|
|
|
6f74ef |
will ensure that only partition data and partition layout will be saved
|
|
|
6f74ef |
(ReaR rescue/recovery system will not be created which is exactly what we want).
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_boot mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Similarly, we create backup of Windows 10 data partition (disk C:\)
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_data mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running restore from ReaR restore/recovery system
|
|
|
6f74ef |
As a first step after ReaR rescue/recovery system booted,
|
|
|
6f74ef |
we will recover Linux. This step will recover all Linux file systems,
|
|
|
6f74ef |
OS data and bootloader. Windows disk will remain untouched.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_os recover
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
In second step will recover Windows 10 boot partition. During this step ReaR
|
|
|
6f74ef |
will detect that destination partition is not present and ask us for device
|
|
|
6f74ef |
@@ -234,25 +234,25 @@ In second step will recover Windows 10 boot partition. During this step ReaR
|
|
|
6f74ef |
partition(s) configuration (currently mounted under _/mnt/local_) will
|
|
|
6f74ef |
remain untouched. Before starting Windows 10 recovery we should identify
|
|
|
6f74ef |
right disk for recovery, as mentioned earlier disk size could be a good start.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# fdisk -l /dev/sdb
|
|
|
6f74ef |
Disk /dev/sdb: 50 GiB, 53687091200 bytes, 104857600 sectors
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
_/dev/sdb_ looks to be right destination, so we can proceed with restore.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_boot restoreonly
|
|
|
6f74ef |
Restore windows_boot.img to device: [/dev/sdb1]
|
|
|
6f74ef |
Device /dev/sdb1 was not found.
|
|
|
6f74ef |
Restore partition layout to (^c to abort): [/dev/sdb]
|
|
|
6f74ef |
Checking that no-one is using this disk right now ... OK
|
|
|
6f74ef |
...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Last step is to recover Windows 10 OS data (C:\).
|
|
|
6f74ef |
Partitions on _/dev/sdb_ were already created in previous step,
|
|
|
6f74ef |
hence ReaR will skip prompt for restoring partition layout.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_data restoreonly
|
|
|
6f74ef |
Restore windows_data.img to device: [/dev/sdb2]
|
|
|
6f74ef |
Ntfsclone image version: 10.1
|
|
|
6f74ef |
@@ -263,7 +263,7 @@ Space in use : 9396 MB (27.8%)
|
|
|
6f74ef |
Offset to image data : 56 (0x38) bytes
|
|
|
6f74ef |
Restoring NTFS from image ...
|
|
|
6f74ef |
...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
At this stage Linux together with Windows 10 is successfully restored.
|
|
|
6f74ef |
|
|
|
6f74ef |
@@ -286,7 +286,7 @@ In this example we will do backup/restore using BLOCKCLONE and `ntfsclone`
|
|
|
6f74ef |
Backups will be stored on NFS server.
|
|
|
6f74ef |
|
|
|
6f74ef |
First we set global ReaR options
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat local.conf
|
|
|
6f74ef |
OUTPUT=ISO
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
@@ -300,23 +300,23 @@ BLOCKCLONE_SAVE_MBR_DEV="/dev/sda"
|
|
|
6f74ef |
BLOCKCLONE_MBR_FILE="boot_strap.img"
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="partitions.conf"
|
|
|
6f74ef |
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
IMPORTANT: BLOCKCLONE_STRICT_PARTITIONING is mandatory if backing up
|
|
|
6f74ef |
Linux / Windows that shares one disk. Not using this option might result to
|
|
|
6f74ef |
unbootable Windows 10 installation.
|
|
|
6f74ef |
|
|
|
6f74ef |
Linux configuration
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat base_os.conf
|
|
|
6f74ef |
this_file_name=$( basename ${BASH_SOURCE[0]} )
|
|
|
6f74ef |
LOGFILE="$LOG_DIR/rear-$HOSTNAME-$WORKFLOW-${this_file_name%.*}.log"
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="backup-${this_file_name%.*}"
|
|
|
6f74ef |
BACKUP_PROG_EXCLUDE+=( '/media/*' )
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows 10 boot partition configuration
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_boot.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
|
|
|
6f74ef |
@@ -328,10 +328,10 @@ BLOCKCLONE_PROG=ntfsclone
|
|
|
6f74ef |
BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_SOURCE_DEV="/dev/sda1"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows 10 data partition configuration
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_data.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="windows_data"
|
|
|
6f74ef |
@@ -342,42 +342,42 @@ BLOCKCLONE_PROG=ntfsclone
|
|
|
6f74ef |
BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_SOURCE_DEV="/dev/sda2"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running backup
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Linux
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_os mkbackup
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Windows 10 boot partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_boot mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Windows 10 data partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_data mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running restore from ReaR restore/recovery system
|
|
|
6f74ef |
Restore Linux
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_os recover
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
During this step ReaR will also create both Windows 10 partitions
|
|
|
6f74ef |
|
|
|
6f74ef |
Restore Windows 10 data partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_data restoreonly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Restore Windows 10 boot partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_boot restoreonly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
=== 4. Backup/restore of Linux / Windows 10 dual boot setup sharing same disk with USB as destination
|
|
|
6f74ef |
|
|
|
6f74ef |
@@ -389,7 +389,7 @@ In this example we will do backup/restore using BLOCKCLONE and `ntfsclone`
|
|
|
6f74ef |
Backups will be stored on USB disk drive (_/dev/sdb_ in this example).
|
|
|
6f74ef |
|
|
|
6f74ef |
Global options
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat local.conf
|
|
|
6f74ef |
OUTPUT=USB
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
@@ -407,10 +407,10 @@ BLOCKCLONE_SAVE_MBR_DEV="/dev/sda"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_MBR_FILE="boot_strap.img"
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="partitions.conf"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Options used during Linux backup/restore.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat local.conf
|
|
|
6f74ef |
OUTPUT=USB
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
@@ -428,14 +428,14 @@ BLOCKCLONE_SAVE_MBR_DEV="/dev/sda"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_MBR_FILE="boot_strap.img"
|
|
|
6f74ef |
BLOCKCLONE_PARTITIONS_CONF_FILE="partitions.conf"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
IMPORTANT: USB_SUFFIX option is mandatory as it avoids ReaR to hold every
|
|
|
6f74ef |
backup in separate directory, this behavior is essential for BLOCKCLONE
|
|
|
6f74ef |
backup method to work correctly.
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows boot partition options
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_boot.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
|
|
|
6f74ef |
@@ -447,10 +447,10 @@ BLOCKCLONE_PROG=ntfsclone
|
|
|
6f74ef |
BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_SOURCE_DEV="/dev/sda1"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Windows data partition options
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat windows_data.conf
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="windows_data"
|
|
|
6f74ef |
@@ -461,11 +461,11 @@ BLOCKCLONE_PROG=ntfsclone
|
|
|
6f74ef |
BLOCKCLONE_PROG_OPTS="--quiet"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_SOURCE_DEV="/dev/sda2"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running backup
|
|
|
6f74ef |
First we need to format target USB device, with `rear format` command
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -v format /dev/sdb
|
|
|
6f74ef |
Relax-and-Recover 2.00 / Git
|
|
|
6f74ef |
Using log file: /var/log/rear/rear-centosd.log
|
|
|
6f74ef |
@@ -477,15 +477,15 @@ Creating ReaR data partition up to 100% of '/dev/sdb'
|
|
|
6f74ef |
Setting 'boot' flag on /dev/sdb
|
|
|
6f74ef |
Creating ext3 filesystem with label 'REAR-000' on '/dev/sdb1'
|
|
|
6f74ef |
Adjusting filesystem parameters on '/dev/sdb1'
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Linux
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_os mkbackup
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Windows 10 boot partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_boot mkbackuponly
|
|
|
6f74ef |
NTFS volume version: 3.1
|
|
|
6f74ef |
Cluster size : 4096 bytes
|
|
|
6f74ef |
@@ -496,10 +496,10 @@ Accounting clusters ...
|
|
|
6f74ef |
Space in use : 338 MB (64.4%)
|
|
|
6f74ef |
Saving NTFS to image ...
|
|
|
6f74ef |
Syncing ...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Backup of Windows 10 data partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C windows_data mkbackuponly
|
|
|
6f74ef |
NTFS volume version: 3.1
|
|
|
6f74ef |
Cluster size : 4096 bytes
|
|
|
6f74ef |
@@ -510,7 +510,7 @@ Accounting clusters ...
|
|
|
6f74ef |
Space in use : 9833 MB (54.3%)
|
|
|
6f74ef |
Saving NTFS to image ...
|
|
|
6f74ef |
Syncing ...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running restore from ReaR restore/recovery system
|
|
|
6f74ef |
For sake of this demonstration I've purposely used ReaR's rescue/recovery media
|
|
|
6f74ef |
@@ -519,7 +519,7 @@ For sake of this demonstration I've purposely used ReaR's rescue/recovery media
|
|
|
6f74ef |
demonstrate possibility of ReaR to recover backup to arbitrary disk. +
|
|
|
6f74ef |
As first step Linux will be restored, this will create all the partitions
|
|
|
6f74ef |
needed, even those used by Windows 10.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
RESCUE centosd:~ # rear -C base_os recover
|
|
|
6f74ef |
Relax-and-Recover 2.00 / Git
|
|
|
6f74ef |
Using log file: /var/log/rear/rear-centosd.log
|
|
|
6f74ef |
@@ -541,13 +541,13 @@ Original disk /dev/sda does not exist in the target system. Please choose an app
|
|
|
6f74ef |
2) /dev/sdb
|
|
|
6f74ef |
3) Do not map disk.
|
|
|
6f74ef |
#?
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now ReaR recover command stops as it detected that disk layout is not identical.
|
|
|
6f74ef |
As our desired restore target is _/dev/sdb_ we choose right disk and continue
|
|
|
6f74ef |
recovery. ReaR will ask to check created restore scripts, but this is not
|
|
|
6f74ef |
needed in our scenario.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
#? 2
|
|
|
6f74ef |
2017-01-25 20:54:01 Disk /dev/sdb chosen as replacement for /dev/sda.
|
|
|
6f74ef |
Disk /dev/sdb chosen as replacement for /dev/sda.
|
|
|
6f74ef |
@@ -607,11 +607,11 @@ Skip installing GRUB Legacy boot loader because GRUB 2 is installed (grub-probe
|
|
|
6f74ef |
Installing GRUB2 boot loader
|
|
|
6f74ef |
Finished recovering your system. You can explore it under '/mnt/local'.
|
|
|
6f74ef |
Saving /var/log/rear/rear-centosd.log as /var/log/rear/rear-centosd-recover-base_os.log
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now we have Linux part restored, GRUB installed and partitions created, hence
|
|
|
6f74ef |
we can continue with Windows 10 boot partition recovery.
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
RESCUE centosd:~ # rear -C windows_boot restoreonly
|
|
|
6f74ef |
Restore windows_boot.nc.img to device: [/dev/sda1] /dev/sdb1
|
|
|
6f74ef |
Ntfsclone image version: 10.1
|
|
|
6f74ef |
@@ -622,12 +622,12 @@ Space in use : 338 MB (64.4%)
|
|
|
6f74ef |
Offset to image data : 56 (0x38) bytes
|
|
|
6f74ef |
Restoring NTFS from image ...
|
|
|
6f74ef |
Syncing ...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Similarly to Linux restore, we were prompted for restore destination, which
|
|
|
6f74ef |
is /dev/sdb1 in our case. +
|
|
|
6f74ef |
As the last step we will recover Windows 10 data partition
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
RESCUE centosd:~ # rear -C windows_data restoreonly
|
|
|
6f74ef |
Restore windows_data.nc.img to device: [/dev/sda2] /dev/sdb2
|
|
|
6f74ef |
Ntfsclone image version: 10.1
|
|
|
6f74ef |
@@ -638,7 +638,7 @@ Space in use : 9867 MB (54.5%)
|
|
|
6f74ef |
Offset to image data : 56 (0x38) bytes
|
|
|
6f74ef |
Restoring NTFS from image ...
|
|
|
6f74ef |
Syncing ...
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Again after restoreonly command is launched, ReaR prompts for restore
|
|
|
6f74ef |
destination. +
|
|
|
6f74ef |
@@ -662,25 +662,25 @@ The _BLOCKCLONE_TRY_UNMOUNT_ is important here: it will attempt to unmount the
|
|
|
6f74ef |
run the risk that the data may be inconsistent.
|
|
|
6f74ef |
|
|
|
6f74ef |
Global options
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat site.conf
|
|
|
6f74ef |
OUTPUT=ISO
|
|
|
6f74ef |
KEEP_OLD_OUTPUT_COPY=1
|
|
|
6f74ef |
BACKUP_URL="nfs://<hostname>/Stations_bkup/rear/"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Options used for the base OS backup:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# cat base_system.conf
|
|
|
6f74ef |
this_file_name=$( basename ${BASH_SOURCE[0]} )
|
|
|
6f74ef |
LOGFILE="$LOG_DIR/rear-$HOSTNAME-$WORKFLOW-${this_file_name%.*}.log"
|
|
|
6f74ef |
BACKUP_PROG_EXCLUDE+=( '/products/*' )
|
|
|
6f74ef |
BACKUP_PROG_ARCHIVE="backup-${this_file_name%.*}"
|
|
|
6f74ef |
BACKUP=NETFS
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Options used to take the encrypted filesystem image:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
this_file_name=$( basename ${BASH_SOURCE[0]} )
|
|
|
6f74ef |
LOGFILE="$LOG_DIR/rear-$HOSTNAME-$WORKFLOW-${this_file_name%.*}.log"
|
|
|
6f74ef |
BACKUP=BLOCKCLONE
|
|
|
6f74ef |
@@ -694,18 +694,18 @@ BLOCKCLONE_SOURCE_DEV="/dev/vg00/lvol4"
|
|
|
6f74ef |
|
|
|
6f74ef |
BLOCKCLONE_ALLOW_MOUNTED="yes"
|
|
|
6f74ef |
BLOCKCLONE_TRY_UNMOUNT="yes"
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running backup
|
|
|
6f74ef |
Base OS backup:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C base_system mkbackup
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Create image of encrypted filesystem:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
# rear -C products_backup mkbackuponly
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
==== Running restore from ReaR restore/recovery system
|
|
|
6f74ef |
First recover the base OS. This will create all the partitions needed, including
|
|
|
6f74ef |
@@ -713,7 +713,7 @@ First recover the base OS. This will create all the partitions needed, including
|
|
|
6f74ef |
As illustrated below, you will be prompted to chose a new encryption passphrase.
|
|
|
6f74ef |
Please provide one, but you need not care about its value as it will get overwritten
|
|
|
6f74ef |
during the next phase:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
RESCUE pc-pan:~ # rear -C base_system.conf recover
|
|
|
6f74ef |
[...]
|
|
|
6f74ef |
Please enter the password for LUKS device cr_vg00-lvol4 (/dev/mapper/vg00-lvol4):
|
|
|
6f74ef |
@@ -724,7 +724,7 @@ Creating filesystem of type xfs with mount point /products on /dev/mapper/cr_vg0
|
|
|
6f74ef |
Mounting filesystem /products
|
|
|
6f74ef |
Disk layout created.
|
|
|
6f74ef |
[...]
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Now we can proceed and restore the encrypted filesystem image. The target filesystem
|
|
|
6f74ef |
will have been mounted by ReaR during the previous phase, but this will be
|
|
|
6f74ef |
@@ -732,12 +732,12 @@ Now we can proceed and restore the encrypted filesystem image. The target filesy
|
|
|
6f74ef |
to "yes". +
|
|
|
6f74ef |
As illustrated below, you will be prompted for the target block device to use.
|
|
|
6f74ef |
Confirm by pressing Enter or type in another value:
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
RESCUE pc-pan:~ # rear -C products_backup.conf restoreonly
|
|
|
6f74ef |
[...]
|
|
|
6f74ef |
Restore backup-products_backup.dd.img to device: [/dev/vg00/lvol4]
|
|
|
6f74ef |
[...]
|
|
|
6f74ef |
-```
|
|
|
6f74ef |
+--------------------------
|
|
|
6f74ef |
|
|
|
6f74ef |
Please note that the target device will not be re-mounted by the script at the end
|
|
|
6f74ef |
of the restore phase. If needed, this should be done manually. +
|
|
|
6f74ef |
diff --git a/doc/user-guide/16-Rubrik-CDM.adoc b/doc/user-guide/16-Rubrik-CDM.adoc
|
|
|
6f74ef |
index 41f37d20..3ac23b7b 100644
|
|
|
6f74ef |
--- a/doc/user-guide/16-Rubrik-CDM.adoc
|
|
|
6f74ef |
+++ b/doc/user-guide/16-Rubrik-CDM.adoc
|
|
|
6f74ef |
@@ -84,7 +84,7 @@ To make CentOS v8.0 work the following line was needed:
|
|
|
6f74ef |
== Test Matrix
|
|
|
6f74ef |
|
|
|
6f74ef |
.Test Matrix
|
|
|
6f74ef |
-[%header,format=csv]
|
|
|
6f74ef |
+[options="header",format="csv"]
|
|
|
6f74ef |
|===
|
|
|
6f74ef |
Operating System,DHCP,Static IP,Virtual,Physical,LVM Root Disk,Plain Root Disk,EXT3,EXT4,XFS,BTRFS,Original Cluster,Replication Cluster
|
|
|
6f74ef |
CentOS 7.3,,pass,Pass,,Pass,,,,Pass,,Pass,
|