How to archive and restore with cpio —03 October 2008
Create archive:
- cd to the directory that you want to archive
find . -xdev -print0 | cpio -oa0V | gzip > path_to_save.cpio.gz
Restore from archive:
- cd to the directory into which you want to restore the files
gzip -cd path_to_save.cpio.gz | cpio -imV
See? Easy as abc ;-)