Possible explanation of the failure of cpio without tracing the source code of GNU cpio v2.11:
http://www.freebsd.org/cgi/man.cgi?quer ... t=html#endBefore trying fsarchiver, check/verify the contents of both source partition and destination partition via rsync as follows:
"rsync -axHAX --delete /mnt/partition1/ /mnt/partition2/ -Pn" (mount both partitions in read-only mode if possible)
Reference:
http://www.fsarchiver.org/forums/viewto ... lude#p2686Probable solution to your problem:
Assume that /dev/sda is WD HDD and /dev/sdb is Seagate HDD. You wanna restore 5 partitions, /dev/sda{6,7,8,9,11} onto /dev/sdb{5,6,7,8,10}.
1. Issue the command, "fsarchiver -j3 -v savefs /mnt/backup/5_fileSystems_archive.fsa /dev/sda{6,7,8,9,11}", to save the contents of 5 fileSystems/partitions into one single archive file, 5_fileSystems_archive.fsa.
2. Issue the command, "fsarchiver -j3 restfs /mnt/backup/5_fileSystems_archive.fsa id=0,dest=/dev/sdb5 id=1,dest=/dev/sdb6 id=2 dest=/dev/sdb7 id=3 dest=/dev/sdb8 id=4 dest=/dev/sdb10", to restore 5_fileSystems_archive.fsa onto /dev/sdb{5,6,7,8,10}.
Unfortunately, fsarchiver DOES NOT support Unix pipeline and therefore you have to save/write the contents of source partitions first for later restoring onto destination partitions.
In case why use fsarchiver instead of tar/dar/cpio:
1.
http://www.fsarchiver.org/forums/viewto ... 34&start=02. Documentation of fsarchiver:
http://www.fsarchiver.org/Main_PageIn case of using "--exclude option" within fsarchiver:
1.
http://www.fsarchiver.org/forums/viewto ... lude#p26862.
http://www.fsarchiver.org/forums/viewto ... it=exclude