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.

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

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

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