ubuntu-命令行备份文件

命令:CPIO

deepfuture@deepfuture-laptop:/tmp$cpio--h

Usage:cpio[OPTION...][destination-directory]

GNU`cpio'copiesfilestoandfromarchives

Examples:

#Copyfilesnamedinname-listtothearchive

cpio-o<name-list[>archive]

#Extractfilesfromthearchive

cpio-i[<archive]

#Copyfilesnamedinname-listtodestination-directory

cpio-pdestination-directory<name-list

例子:

deepfuture@deepfuture-laptop:~$find/home-name*.pdf|cpio-o>/tmp/backup.cpio

29219块

deepfuture@deepfuture-laptop:~$cd/tmp

deepfuture@deepfuture-laptop:/tmp$ls

backup.cpiopulse-WeMJdStCy5rXscim-socket-frontend-deepfuture

keyring-Te1C2gscim-bridge-0.3.0.socket-1000@localhost:0.0seahorse-JS2wki

orbit-deepfuturescim-helper-manager-socket-deepfuturessh-lHXiNP3054

pulse-PKdhtXMmr18nscim-panel-socket:0-deepfuturevirtual-deepfuture.idDYLk

deepfuture@deepfuture-laptop:/tmp$ls-a

..ICE-unixpulse-WeMJdStCy5rXscim-socket-frontend-deepfuture.X0-lock

..keyring-Te1C2gscim-bridge-0.3.0.socket-1000@localhost:0.0seahorse-JS2wki.X11-unix

backup.cpioorbit-deepfuturescim-helper-manager-socket-deepfuturessh-lHXiNP3054

.esd-1000pulse-PKdhtXMmr18nscim-panel-socket:0-deepfuturevirtual-deepfuture.idDYLk

deepfuture@deepfuture-laptop:/tmp$ls-l

总用量14660

-rw-r--r--1deepfuturedeepfuture149601282009-08-0410:28backup.cpio

drwx------2deepfuturedeepfuture40962009-08-0408:30keyring-Te1C2g

drwx------2deepfuturedeepfuture40962009-08-0410:21orbit-deepfuture

drwx------2rootroot40962009-08-0408:30pulse-PKdhtXMmr18n

drwx------2deepfuturedeepfuture40962009-08-0408:30pulse-WeMJdStCy5rX

srwxr-xr-x1deepfuturedeepfuture02009-08-0408:30scim-bridge-0.3.0.socket-1000@localhost:0.0

srw-------1deepfuturedeepfuture02009-08-0408:30scim-helper-manager-socket-deepfuture

srw-------1deepfuturedeepfuture02009-08-0408:30scim-panel-socket:0-deepfuture

srw-------1deepfuturedeepfuture02009-08-0408:30scim-socket-frontend-deepfuture

drwx------2deepfuturedeepfuture40962009-08-0408:30seahorse-JS2wki

drwx------2deepfuturedeepfuture40962009-08-0408:30ssh-lHXiNP3054

drwx------2deepfuturedeepfuture40962009-08-0408:30virtual-deepfuture.idDYLk

deepfuture@deepfuture-laptop:/tmp$cpio-i<backup.cpio

cpio:未创建/home/deepfuture/MyDownloads/quickstart.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/distutils.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-regex.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/whatsnew.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/library.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/install.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-sockets.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/documenting.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-advocacy.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-doanddont.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/reference.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/using.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/c-api.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-webservers.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/extending.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-curses.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-unicode.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-cporting.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-urllib2.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/howto-functional.pdf:已有更新或同样新的版本存在

cpio:未创建/home/deepfuture/文档/docs-pdf/tutorial.pdf:已有更新或同样新的版本存在

29219块

相关推荐