Based on the Linux Master 1 exam syllabusReport an error
tar, rsync, cpio), file system level (dump/restore, levels 0 to 9), block level (dd).rsync is the standard for incremental synchronization that transfers only what changed (-a preserve · -v verbose · -z compress · --delete).dd wipes out your data entirely if you swap if/of. dump is for the ext family only (for xfs, use xfsdump).tar -czvf backup.tar.gz /home/user # a directory into a compressed archive (most common)
tar -xzvf backup.tar.gz # restore (extract)
rsync -av /src/ /backup/ # incremental sync (changed parts only)
rsync -avz /src/ user@host:/backup/ # compressed transfer to a remote host (z)
dd if=/dev/sda of=/backup/disk.img # clone a disk whole, block by block
dump -0u -f /backup/full.dump /dev/sda1 # file system level 0 (full) backup
restore -rf /backup/full.dump # restore a dump backup
find /home | cpio -ov > backup.cpio # archive combined with find| Tool | Layer | Characteristics | Use |
|---|---|---|---|
tar | File/directory | Bundling + compression, most common | General backup and distribution |
rsync | File/directory | Incremental (changed only), remote | Periodic synchronization |
dd | Block (device) | Whole-disk clone, bit by bit | Disk images and cloning |
dump/restore | File system | Levels 0 to 9 incremental, ext family | Whole file system backup |
cpio | Files (stdin) | Combined with find | Selective archive |
💡 Concept: Backup tools must be understood by operating layer.
tar/rsync/cpiowork at the file level, picking files and directories to back up.dump/restorework at the file system level and support levels (0 = full, 1 to 9 = incremental).ddworks at the lowest block (device) level, cloning the disk bit for bit including free space — which is why it is used for whole-disk images and cloning boot disks. A different layer means a different use.
The strength of rsync is incremental transfer. The first time it copies everything, but from then on it transfers only changed files and changed blocks, saving a great deal of time and bandwidth. -a (archive, preserves permissions, timestamps, links), -v (verbose), -z (compress during transfer), and --delete (also delete from the backup the files that no longer exist in the source) are the key options. It is the de facto standard for remote backup. Be careful: a trailing slash on a path (/src/) means "the contents inside the directory", which changes the result.
⚠️ Trap:
ddis as dangerous as it is powerful. If you swapif(input file) andof(output file), it overwrites the disk you meant to back up with an empty image and destroys the data entirely — hence the nickname "data destroyer". Also,dumpis specialized for ext2/3/4 and cannot be used on xfs and others (for xfs, usexfsdump). Each tool supports different file systems.
# Try it yourself — backup practice (in a safe directory)
mkdir -p /tmp/src /tmp/dst
echo "hello" > /tmp/src/a.txt
tar -czvf /tmp/backup.tar.gz /tmp/src # tar backup
tar -tzvf /tmp/backup.tar.gz # check contents (without extracting)
rsync -av /tmp/src/ /tmp/dst/ # rsync synchronization
echo "world" >> /tmp/src/a.txt
rsync -av /tmp/src/ /tmp/dst/ # second run: only what changed is transferred| Area | Low-level (single, manual) | High-level (automatic, dependencies) |
|---|---|---|
| RPM packages | rpm -ivh | yum/dnf install |
| DEB packages | dpkg -i | apt install |
| Kernel modules | insmod / rmmod | modprobe / modprobe -r |
All three rows share the same principle: "the low level handles a single file/target directly and cannot resolve dependencies automatically, while the high level consults repositories/dependency maps to handle things automatically". rpm -ivh stopping on a dependency error, dpkg -i leaving things in a "not configured" state, insmod failing with "Unknown symbol" — all have the same reason (manual dependencies). That's why the answer in real work and on the exam is usually a high-level tool.
| Flow | Ordinary source install | Kernel compile |
|---|---|---|
| Configure | ./configure --prefix= | make menuconfig (.config) |
| Build | make | make |
| Install | make install | make modules_install + make install |
Both build with make, but the configuration method differs. For ordinary source, ./configure surveys the system and creates the Makefile, while for the kernel you select features yourself (*/M/excluded) with make menuconfig to create .config. The kernel's installation also has two branches — modules with make modules_install (→/lib/modules), and the kernel image with make install (→/boot + GRUB). Libraries split into dynamic (.so, managed with ldd/ldconfig) and static (.a).
Day 4's "block device (b) vs character device (c)" ties directly to backup. The reason dd can clone a whole disk is that a disk is a block device, so random access in block units is possible. Character devices (terminals, keyboards) are streams and cannot be cloned into an image. So dd if=/dev/sda (a block device) works, but dd if=/dev/tty0 (a character device) has no meaning as a disk image backup. Device type → possible backup method connect in a single line.
The age of the backup tools shows their design philosophy. dump/restore and dd are classics from 1970s Unix, handling file systems and devices directly. tar (tape archive) was originally built to back up to magnetic tape, which is why "tape" remains in its name. cpio is also a tape tool from the same era. rsync is a relative newcomer that appeared in 1996, and it made "transfer only the changed parts" its core, fitting the network era. The older the tool, the lower the layer it aims at (blocks, file systems, tape); the newer the tool, the more it aims at efficient network synchronization.
tar : Short for "tape archive". The most common backup tool for bundling and compressing files and directories.rsync : An incremental sync tool that transfers only the changed parts. The de facto standard for remote backup.dump levels 0 to 9 : 0 is a full backup, and 1 to 9 are incremental stages that contain only the changes since a lower-level backup.dd's if / of : Input file / output file. If swapped, the source is overwritten and the data disappears.cpio : A classic tool that takes the output of find and makes an archive. Used for selective backup.--delete : An rsync option that also deletes from the destination the files that don't exist in the source, creating an exact mirror.Click a choice to reveal the answer and explanation.
Question 1
On the RHEL family, which high-level tool installs packages from repositories while resolving dependencies automatically?
Question 2
In a source compile installation, which step specifies the top-level installation path and generates a Makefile suited to the system?
Question 3
Which statement correctly describes the difference between static and dynamic libraries?
Question 4
Which tool combination correctly checks the dynamic libraries an executable depends on and makes the system recognize a library in a non-standard path?
Question 5
Which command loads a kernel module by name alone, resolving dependencies automatically?
Question 6
What does the make menuconfig step do in kernel compilation?
Question 7
In ls -l, what is a device file whose first permission character is c?
Question 8
Which correctly pairs the command that cancels a print job in the System V family with the one in the BSD family?
Question 9
Which best describes the operating layer and use of the backup tool dd?
Question 10
You want to synchronize to a remote server by transferring only changed files incrementally, with compression applied. Which command is most appropriate?
Question 11
Which of the following is an incorrect "low-level single tool ↔ high-level automation tool" pairing?
Question 12
Which best describes the difference between dump/restore and tar?