Linux Backup and Disk Imaging Cheat Sheet/Create a cpio archive from find

Useful in some initramfs and recovery workflows.

Section: Copy and Synchronize

Create a cpio archive from find

bash
bash
find . -print | cpio -ov > archive.cpio
Explanation

Useful in some initramfs and recovery workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Copy and Synchronize
Copy a directory tree preserving metadata
Preserve mode, ownership, timestamps, and symlinks.
OpenIn sheetbashsame section
Mirror a directory with rsync
Powerful local or remote copy preserving metadata and ACLs when supported.
OpenIn sheetbashsame section
Create a compressed tar archive
Package and compress a directory tree.
OpenIn sheetbashsame section
Extract a tar archive
Restore archive contents to a target directory.
OpenIn sheetbashsame section
List archive contents
Inspect what an archive contains before extracting.
OpenIn sheetbashsame section
Mirror and delete removed files
Make the destination match the source exactly.
OpenIn sheetbashsame section