Portál AbcLinuxu, 14. května 2025 00:50
cpio -idvm '/data/dokumentace*' < /backup/daily.cpio
Bohužel to končí chybou "cpio: premature end of file".
Přitom výpis obsahu archivu pomocí
cpio -itv < /backup/daily.cpio | grep "/data/dokumentace"
potřebná data zobrazí.
Kde by mohla být chyba?
Díky. JR.
cpio -idvm '/data/dokumentace/*' < /backup/daily.cpio
-H format --format=format [copy-in,copy-out,copy-pass] Use archive format format. The valid formats are listed below with file size limits for individual files in parentheses; the same names are also recognized in all-caps. The default in copy-in mode is to automatically detect the archive format, and in copy-out mode is ‘bin’. ‘bin’ The obsolete binary format. (2147483647 bytes) ‘odc’ The old (POSIX.1) portable format. (8589934591 bytes) ‘newc’ The new (SVR4) portable format, which supports file systems having more than 65536 i-nodes. (4294967295 bytes) ‘crc’ The new (SVR4) portable format with a checksum added. ‘tar’ The old tar format. (8589934591 bytes) ‘ustar’ The POSIX.1 tar format. Also recognizes GNU tar archives, which are similar but not identical. (8589934591 bytes) ‘hpbin’ The obsolete binary format used by HPUX’s cpio (which stores device files differently). ‘hpodc’ The portable format used by HPUX’s cpio (which stores device files differently).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.