This example migrates an incremental subset of the data from a UFS file system to an already prepared ZFS or UFS file system.
This procedure is used in situations when there is a lapse between the time that the initial full dump is captured on the source and then restored on the target . If the source system remained in production, it is likely that data has changed on the source system. In such cases, you can perform an incremental dump and restore to migrate only the changed data to the target system.
The following examples show two types of incremental dumps. The difference between the examples is the way the source disk device is specified.
Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.
root@Source# ufsdump 0cf - /dev/md/rdsk/d20 | pigz > /SharedStorage/redo.ufsdump.gz
Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.
root@Source# ufsdump 1cf - /dev/rdsk/c0t5000CCA0804092ECd0s6 | pigz > /SharedStorage/ufs1_ufsdump1.gz DUMP: Date of this level 1 dump: Wed Sep 25 14:45:01 2019 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdsk/c0t5000CCA0804092ECd0s6 (opc-s02-s72-06:/ufs1) to standard output. DUMP: Mapping (Pass I) [regular files] DUMP: Mapping (Pass II) [directories] DUMP: Writing 63 Kilobyte records DUMP: Estimated 930 blocks (465KB). DUMP: Dumping (Pass III) [directories] DUMP: Dumping (Pass IV) [regular files] DUMP: 880 blocks (440KB) on 1 volume at 22000 KB/sec DUMP: DUMP IS DONE
The following examples show two types of incremental restores.
Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.
root@Target# pigz -dc -f /SharedStorage/redo.ufsdump.gz | ufsrestore xvf -
Note – For the appropriate path to the pigz command, see the Secondary Commands table in Data Migration Commands.
root@Target# pigz -dc -f /SharedStorage/ufs1_ufsdump1.gz | ufsrestore xvf - Verify volume and initialize maps Dump date: Wed Sep 25 14:45:01 2019 Dumped from: the epoch Level 1 dump of /ufs1 on opc-s02-s72-06:/dev/dsk/c0t5000CCA0804092ECd0s6 Label: none Extract directories from tape Initialize symbol table. Warning: ./lost+found: File exists Extract requested files extract file ./hosts extract file ./nsswitch.conf Add links Set directory mode, owner, and times. set owner/mode for '.'? [yn] y Directories already exist, set modes anyway? [yn] n