Backup the whole partition with cpio archive command

cpio is a useful tool to archive Linux system. In this article, we are going to archive / partition which is mounted from sda11 partition.

###Archive
ssh root@192.168.1.104 "find / -xdev -print0 | cpio --null --create" > sda11.cpio

###Extract
cpio --extract --no-absolute-filenames --file=sda11.cpio

For the /dev directory, recommended to be archived by tar command
ssh root@192.168.1.104 "tar -c /dev" > dev.tar


Comments