User Tools

Site Tools


команда_cpio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
команда_cpio [2011/03/04 09:24]
val
команда_cpio [2016/04/07 09:42] (current)
val [Команда cpio]
Line 1: Line 1:
 ====== Команда cpio ====== ====== Команда cpio ======
  
-[[http://www.gnu.org/software/cpio/manual/​cpio.html]]+  * [[https://ru.wikipedia.org/wiki/Cpio|Copy Input/Output]]
  
 ===== Создание архива ===== ===== Создание архива =====
 <​code>​ <​code>​
 +# cd /; find etc/ | cpio -o | bzip2 -c > /​mnt/​etc.cpio.bz2
 +
 # cd /; find etc/ -name '​*,​v'​ | sed -e '​s/​RCS\///'​ -e '​s/,​v//'​ | cpio -o | bzip2 -c > /​mnt/​etc.cpio.bz2 # cd /; find etc/ -name '​*,​v'​ | sed -e '​s/​RCS\///'​ -e '​s/,​v//'​ | cpio -o | bzip2 -c > /​mnt/​etc.cpio.bz2
  
-# cd /; find etc/ -ctime -1 | wc -l | cpio -o | bzip2 -c | ssh archiveserver "cat > etc.cpio.bz2"​+# cd /; find etc/ -ctime -1 | cpio -o | bzip2 -c | ssh archiveserver "cat > etc.cpio.bz2"​
 </​code>​ </​code>​
  
команда_cpio.1299219846.txt.gz · Last modified: 2013/05/22 13:50 (external edit)