{"id":17313,"date":"2018-08-11T08:45:21","date_gmt":"2018-08-11T05:15:21","guid":{"rendered":"http:\/\/blog.iranhostdir.ir\/?p=17313"},"modified":"2023-01-30T15:28:59","modified_gmt":"2023-01-30T11:58:59","slug":"%d8%a8%d8%b1%d8%b1%d8%b3%db%8c-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-cpio-%d9%87%d9%85%d8%b1%d8%a7%d9%87-%d8%a8%d8%a7-%d9%be%db%8c%d8%a7%d8%af%d9%87-%d8%b3%d8%a7%d8%b2%db%8c-%d8%b9%d9%85%d9%84%db%8c-%d8%af","status":"publish","type":"post","link":"https:\/\/iranhost.com\/blog\/%d8%a8%d8%b1%d8%b1%d8%b3%db%8c-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-cpio-%d9%87%d9%85%d8%b1%d8%a7%d9%87-%d8%a8%d8%a7-%d9%be%db%8c%d8%a7%d8%af%d9%87-%d8%b3%d8%a7%d8%b2%db%8c-%d8%b9%d9%85%d9%84%db%8c-%d8%af\/","title":{"rendered":"\u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0648\u0631 cpio \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06cc \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633"},"content":{"rendered":"<p>\u062f\u0633\u062a\u0648\u0631 cpio \u0646\u06cc\u0632 \u0647\u0645\u0627\u0646\u0646\u062f \u062f\u0633\u062a\u0648\u0631 tar \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0622\u0631\u0634\u06cc\u0648 \u06a9\u0631\u062f\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f.\u0647\u0645\u0686\u0646\u06cc\u0646 \u062f\u0631 \u0633\u0646\u0627\u0631\u06cc\u0648\u0647\u0627\u06cc \u06af\u0631\u0641\u062a\u0646 \u0628\u06a9 \u0622\u067e \u0627\u0632 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648 \u0641\u0648\u0644\u062f\u0631\u0647\u0627\u06cc \u06cc\u06a9 \u0645\u0633\u06cc\u0631 \u062e\u0627\u0635 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f.\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0686\u0646\u062f\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0648 \u0641\u0648\u0644\u062f\u0631 \u0631\u0627 \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u0646\u0647\u0627 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0622\u0631\u0634\u06cc\u0648 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 cpio \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.\u0627\u0644\u0628\u062a\u0647 \u0642\u0628\u0644 \u0627\u0632 \u0647\u0631 \u06a9\u0627\u0631\u06cc \u0628\u0647 \u0634\u0645\u0627 \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0645\u0642\u0627\u0644\u0647 \u06cc \u0645\u0627 \u0628\u0627 \u0645\u0648\u0636\u0648\u0639 <a href=\"https:\/\/iranhost.com\/blog\/8-%DA%A9%D8%A7%D9%85%D9%86%D8%AF-%D9%85%D8%B1%DA%AF%D8%A8%D8%A7%D8%B1-%DA%A9%D9%87-%D9%86%D8%A8%D8%A7%DB%8C%D8%AF-%D9%87%D8%B1%DA%AF%D8%B2-%D8%AF%D8%B1-%D9%84%DB%8C%D9%86%D9%88%DA%A9%D8%B3-%D8%A7\/\">\u06f8 \u06a9\u0627\u0645\u0646\u062f \u0645\u0631\u06af\u0628\u0627\u0631 \u06a9\u0647 \u0646\u0628\u0627\u06cc\u062f \u0647\u0631\u06af\u0632 \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f<\/a>\u00a0\u0631\u0627 \u0645\u0637\u0627\u0644\u0639\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0632 \u0648\u0631\u0648\u062f\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0622\u062f\u0631\u0633 \u06cc\u06a9\u0633\u0631\u06cc \u0641\u0627\u06cc\u0644 \u0648 \u0641\u0648\u0644\u062f\u0631 \u0631\u0627 \u0645\u06cc \u06af\u06cc\u0631\u062f \u0648 \u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0622\u0631\u0634\u06cc\u0648 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0645\u06cc \u0631\u06cc\u0632\u062f \u0628\u0647 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u062a\u0648\u062c\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f<\/p>\n<p dir=\"ltr\">Find \/etc\/apache2 | cpio \u2013o &gt; test.cpio\u062f\u0633\u062a\u0648\u0631 more \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633<\/p>\n<p>\u062f\u0631 \u0645\u062b\u0627\u0644 \u0641\u0648\u0642 \u062f\u0633\u062a\u0648\u0631 find \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u062a\u0645\u0627\u0645\u06cc \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648\u0641\u0648\u0644\u062f\u0631\u0647\u0627\u06cc \u0645\u0633\u06cc\u0631 \/etc\/apache2 \u0631\u0627 \u062f\u0631 \u0648\u0631\u0648\u062f\u06cc \u0645\u06cc \u06af\u06cc\u0631\u062f \u0633\u067e\u0633 \u062a\u0648\u0633\u0637 <a href=\"https:\/\/www.guru99.com\/linux-pipe-grep.html\" rel=\"nofollow noopener\" target=\"_blank\">\u062f\u0633\u062a\u0648\u0631 pipe<\/a> \u0622\u0646 \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a\u0648\u0631 cpio \u0645\u06cc \u062f\u0647\u062f \u0622\u0631\u0634\u06cc\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u0634\u0648\u062f \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u062e\u0631\u0648\u062c\u06cc \u062f\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0627\u06cc \u0628\u0646\u0627\u0645 test.cpio \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f \u06a9\u0647 \u0647\u0645\u0627\u0646 \u0641\u0627\u06cc\u0644 \u0627\u0631\u0634\u06cc\u0648 \u0634\u062f\u0647 \u0645\u0627 \u0645\u06cc \u0628\u0627\u0634\u062f<\/p>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u062a\u0645\u0627\u0645\u06cc \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648 \u0641\u0648\u0644\u062f\u0631\u0647\u0627\u06cc \u0645\u0633\u06cc\u0631 \/etc\/apache2 \u062d\u0630\u0641 \u06af\u0631\u062f\u062f \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 cpio \u0645\u06cc \u062a\u0648\u0627\u0646 \u0645\u062c\u062f\u062f \u062a\u0645\u0627\u0645\u06cc \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u062d\u0630\u0641 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0627\u0646 \u0645\u0633\u06cc\u0631 \u0627\u0635\u0644\u06cc \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u06a9\u0631\u062f.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">Rm \u2013rf \/etc\/apache2\/*<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">Cpio \u2013id &lt; test.cpio<\/p>\n<p>\u0628\u0627 \u0622\u067e\u0634\u0646 \u2013d \u062a\u0645\u0627\u0645\u06cc \u0641\u0648\u0644\u062f\u0631\u0647\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u0646\u06cc\u0632 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u0634\u0648\u062f \u0686\u0648\u0646 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u06a9\u0633\u0631\u06a9\u062a \u06a9\u0631\u062f\u0646 \u062a\u0648\u0633\u0637 \u062f\u0633\u062a\u0648\u0631 cpio \u0641\u0648\u0644\u062f\u0631 \u0647\u0627 \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u06cc \u0634\u0648\u062f<\/p>\n<p>\u0646\u06a9\u062a\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u0633\u062a\u06cc \u062f\u0642\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 cpio \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0645\u0634\u062e\u0635 \u0646\u0645\u0627\u06cc\u06cc\u0645 \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0645\u0633\u06cc\u0631 \u062e\u0627\u0635\u06cc extract \u0634\u0648\u0646\u062f.\u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0631\u0648\u062f\u06cc \u062f\u0627\u062f\u0646 \u0628\u0627\u06cc\u0633\u062a\u06cc \u062f\u0642\u062a \u06a9\u0646\u06cc\u0645 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0645\u0633\u06cc\u0631\u0647\u0627 \u0628\u0627 \/ \u0622\u063a\u0627\u0632 \u06af\u0631\u062f\u0646\u062f(absolute path) \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u0647\u0645 \u0628\u0647 \u0647\u0645\u0627\u0646 \u0645\u0633\u06cc\u0631 \u0627\u0648\u0644\u06cc\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0645\u0633\u06cc\u0631\u0647\u0627 \u0628\u062f\u0648\u0646 \/ \u0634\u0631\u0648\u0639 \u0634\u0648\u0646\u062f(relative path ) \u0639\u0645\u0644 \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u062f\u0631 \u0647\u0645\u0627\u0646 \u0645\u0633\u06cc\u0631 \u062c\u0627\u0631\u06cc (\u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062c\u0627\u0631\u06cc ) extract \u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f<\/p>\n<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0645\u062b\u0627\u0644\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645.\u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 relative \u0647\u0633\u062a\u0646\u062f<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">Cd \/<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">Find etc\/apache2 | cpio \u2013o &gt; apache2.cpio<\/p>\n<p>\u062d\u0627\u0644 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0639\u0645\u0644 extract \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u0645 \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u06cc\u0646\u06a9\u0647 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0631\u0648\u062f\u06cc \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0645\u0627 relative \u0628\u0648\u062f\u0646\u062f \u062f\u0631 \u0645\u0633\u06cc\u0631 \u0627\u0648\u0644\u06cc\u0647 \u06cc\u0639\u0646\u06cc etc\/apache2 \u0627\u06a9\u0633\u062a\u0631\u06a9\u062a \u0646\u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f \u0628\u0644\u06a9\u0647 \u062f\u0631 \u0647\u0645\u0627\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0648 \u0645\u0633\u06cc\u0631 \u062c\u0627\u0631\u06cc extract \u062e\u0648\u0627\u0647\u0646\u062f \u0634\u062f.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-29800 size-full\" src=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2018\/08\/CPIO-COMMAND-1.png\" alt=\"\u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0648\u0631 cpio \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06cc \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\" width=\"627\" height=\"135\" srcset=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2018\/08\/CPIO-COMMAND-1.png 627w, https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2018\/08\/CPIO-COMMAND-1-300x65.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/p>\n<p dir=\"rtl\" style=\"text-align: right;\">\u00a0\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0622\u067e\u0634\u0646 \u0647\u0627\u06cc \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0645\u06cc \u067e\u0631\u062f\u0627\u0632\u06cc\u0645:<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-\u06f0, &#8211;null\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Read a list of filenames terminated by a null character, instead of a newline, so that files whose names contain newlines can be archived. GNU find is one way to produce a list of null-terminated filenames. This option may be used in copy-out and copy-pass modes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-a, &#8211;reset-access-time\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Reset the access times of files after reading them, so that it does not look like they have just been read.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-A, &#8211;append\u00a0\u00a0 Append to an existing archive. Only works in copy-out mode. The archive must be a disk file specified with the -O or -F (-file) option.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-b, &#8211;swap\u00a0\u00a0\u00a0\u00a0\u00a0 Swap both halfwords of words and bytes of halfwords in the data. Equivalent to -sS. This option may be used in copy-in mode. Use this option to convert 32-bit integers between big-endian and little-endian machines.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-B\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set the I\/O block size to 5120 bytes. Initially the block size is 512 bytes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;block-size=BLOCK-SIZE\u00a0\u00a0\u00a0\u00a0 Set the I\/O block size to BLOCK-SIZE * 512 bytes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-c\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Identical to &#8216;-H newc&#8217;; uses the new (SVR4) portable format. If you want the old portable (ASCII) archive format, use &#8216;-H odc&#8217; instead.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-C IO-SIZE, &#8211;io-size=IO-SIZE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set the I\/O block size to IO-SIZE bytes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-d, &#8211;make-directories Create leading directories where needed.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-E FILE, &#8211;pattern-file=FILE\u00a0\u00a0 Read additional patterns specifying filenames to extract or list from FILE. The lines of FILE are treated as if they had been non-option arguments to cpio. This option is used in copy-in mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-f, &#8211;nonmatching\u00a0\u00a0\u00a0\u00a0\u00a0 Only copy files that do not match any of the given patterns.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-F, &#8211;file=archive\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Archive filename to use instead of standard input or output. To use a tape drive on another machine as the archive, use a filename that starts with &#8216;HOSTNAME:&#8217;. The hostname can be preceded by a username and an &#8216;@&#8217; to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user&#8217;s &#8216;~\/.rhosts&#8217; file).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;force-local\u00a0\u00a0 With -F, -I, or -O, take the archive file name to be a local file even if it contains a colon, which would ordinarily indicate a remote host name.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-H FORMAT, &#8211;format=FORMAT\u00a0\u00a0\u00a0\u00a0\u00a0 Use archive format FORMAT. The valid formats are listed below; 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 &#8216;bin&#8217;.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">bin: The obsolete binary format.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">odc: The old (POSIX .1) portable format.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">newc: The new (SVR4) portable format, which supports file systems having more than 65536 inodes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">crc: The new (SVR4) portable format with a checksum added.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">tar: The old tar format.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">ustar: The POSIX .1 tar format. Also, recognizes GNU tar archives, which are similar but not identical.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">hpbin: The obsolete binary format used by HPUX&#8217;s cpio (which stores device files differently).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">hpodc: The portable format used by HPUX&#8217;s cpio (which stores device files differently).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-i, &#8211;extract\u00a0\u00a0\u00a0\u00a0 Run in copy-in mode. (see &#8216;Copy-in mode&#8217;).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-I archive\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Archive filename to use instead of standard input. To use a tape drive on another machine as the archive, use a filename that starts with &#8216;HOSTNAME:&#8217;. The hostname can be preceded by a username and an &#8216;@&#8217; to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user&#8217;s &#8216;~\/.rhosts&#8217; file).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-k\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ignored; for compatibility with other versions of cpio.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-l, &#8211;link\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Link files instead of copying them, when possible.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-L, &#8211;dereference\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Copy the file that a symbolic link points to, rather than the symbolic link itself.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-m, &#8211;preserve-modification-time\u00a0\u00a0\u00a0\u00a0 Retain previous file modification times when creating files.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-M MESSAGE, &#8211;message=MESSAGE Print MESSAGE when the end of a volume of the backup media (such as a tape or a floppy disk) is reached, to prompt the user to insert a new volume. If MESSAGE contains the string &#8216;%d&#8217;, it is replaced by the current volume number (starting at 1).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-n, &#8211;numeric-uid-gid\u00a0 Show numeric UID and GID instead of translating them into names when using the &#8216;&#8211;verbose&#8217; option.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;no-absolute-filenames\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Create all files relative to the current directory in copy-in mode, even if they have an absolute file name in the archive.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;absolute-filenames\u00a0 This is the default: tell cpio not to strip leading file name components that contain &#8216;..&#8217; and leading slashes from file names in copy-in mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;no-preserve-owner\u00a0 Do not change the ownership of the files; leave them owned by the user extracting them. This is the default for non-root users, so that users on System V don&#8217;t inadvertently give away files. This option can be used in copy-in mode and copy-pass mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-o, &#8211;create\u00a0\u00a0\u00a0\u00a0 Run in copy-out mode. (see &#8216;Copy-out mode&#8217;).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-O archive\u00a0\u00a0\u00a0\u00a0\u00a0 Archive filename to use instead of standard output. To use a tape drive on another machine as the archive, use a filename that starts with &#8216;HOSTNAME:&#8217;. The hostname can be preceded by a username and an &#8216;@&#8217; to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user&#8217;s &#8216;~\/.rhosts&#8217; file).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;only-verify-crc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Verify the CRC of each file in the archive, when reading a CRC format archive. Do not actually extract the files.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-p, &#8211;pass-through\u00a0\u00a0\u00a0\u00a0 Run in copy-pass mode. (see &#8216;Copy-pass mode&#8217;).<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;quiet Do not print the number of blocks copied.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-r, &#8211;rename\u00a0\u00a0 Interactively rename files.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-R [user][:.][group], &#8211;owner [user][:.][group]\u00a0\u00a0\u00a0\u00a0\u00a0 Set the ownership of all files created to the specified user and\/or group in copy-out and copy-pass modes. Either the user, the group, or both, must be present. If the group is omitted but the &#8216;:&#8217; or &#8216;.&#8217; separator is given, use the given user&#8217;s login group. Only the super-user can change files&#8217; ownership.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;rsh-command=COMMAND\u00a0 Notifies cpio that is should use COMMAND to communicate with remote devices.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-s, &#8211;swap-bytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Swap the bytes of each halfword (pair of bytes) in the files. This option can be used in copy-in mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-S, &#8211;swap-halfwords Swap the halfwords of each word (4 bytes) in the files. This option may be used in copy-in mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;sparse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Write files with large blocks of zeros as sparse files. This option is used in copy-in and copy-pass modes.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-t, &#8211;list\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print a table of contents of the input.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;to-stdout\u00a0\u00a0\u00a0\u00a0 Extract files to standard output. This option may be used in copy-in mode.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-u, &#8211;unconditional\u00a0\u00a0\u00a0\u00a0 Replace all files, without asking whether to replace existing newer files with older files.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-v, &#8211;verbose\u00a0 List the files processed, or with &#8216;-t&#8217;, give an &#8216;ls -l&#8217; style table of contents listing. In a verbose table of contents of a ustar archive, user and group names in the archive that do not exist on the local system are replaced by the names that correspond locally to the numeric UID and GID stored in the archive.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">-V, &#8211;dot\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print a &#8216;.&#8217; for each file processed.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">&#8211;version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print the cpio program version number and exit.<\/p>\n<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0686\u0646\u062f \u0645\u062b\u0627\u0644 \u062f\u06cc\u06af\u0631 \u0645\u06cc \u067e\u0631\u062f\u0627\u0632\u06cc\u0645:<\/p>\n<p dir=\"ltr\">ls | cpio -ov &gt; directory.cpio<\/p>\n<p>\u062f\u0631 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u0648\u0631\u0648\u062f\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u0645\u0627 \u062f\u06cc\u062a\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 list \u0645\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648 \u0641\u0648\u0644\u062f\u0631\u0647\u0627\u06cc \u0645\u0633\u06cc\u0631 \u062c\u0627\u0631\u06cc \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0648 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0648\u0631\u0648\u062f\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u062a\u0648\u0633\u0637 pipe \u0628\u0647 \u062f\u0633\u062a\u0648\u0631 cpio \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc \u06af\u0631\u062f\u062f.\u0628\u0639\u062f \u0627\u0632 \u0622\u0631\u0634\u06cc\u0648 \u0634\u062f\u0646 \u062e\u0631\u0648\u062c\u06cc \u062a\u062d\u062a \u0646\u0627\u0645 \u0641\u0627\u06cc\u0644 directory.cpio \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc \u0634\u0648\u062f<\/p>\n<p>\u0628\u0631\u0627\u06cc extract \u06a9\u0631\u062f\u0646 \u0641\u0627\u06cc\u0644 \u0627\u0631\u0634\u06cc\u0648 \u0634\u062f\u0647 directory.cpio \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u0622\u067e\u0634\u0646 \u2013i \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f<\/p>\n<p dir=\"ltr\">cpio -iv &lt; directory.cpio<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0633\u062a\u0648\u0631 cpio \u0646\u06cc\u0632 \u0647\u0645\u0627\u0646\u0646\u062f \u062f\u0633\u062a\u0648\u0631 tar \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0622\u0631\u0634\u06cc\u0648 \u06a9\u0631\u062f\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f.\u0647\u0645\u0686\u0646\u06cc\u0646 \u062f\u0631 \u0633\u0646\u0627\u0631\u06cc\u0648\u0647\u0627\u06cc \u06af\u0631\u0641\u062a\u0646 \u0628\u06a9 \u0622\u067e \u0627\u0632 \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0648 \u0641\u0648\u0644\u062f\u0631\u0647\u0627\u06cc \u06cc\u06a9 \u0645\u0633\u06cc\u0631 \u062e\u0627\u0635 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f.\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0686\u0646\u062f\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0648 \u0641\u0648\u0644\u062f\u0631 \u0631\u0627 \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u0646\u0647\u0627 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0622\u0631\u0634\u06cc\u0648 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 &hellip;<\/p>\n","protected":false},"author":64,"featured_media":29799,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[],"class_list":["post-17313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webhosting"],"_links":{"self":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/17313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/comments?post=17313"}],"version-history":[{"count":0,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/17313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media\/29799"}],"wp:attachment":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media?parent=17313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/categories?post=17313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/tags?post=17313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}