Backing Up and Restoring Using the cpio Command in Linux and Unix





The cpio command is one of the most commonly used Linux back up tools.
The cpio command has two unusual features
Unlike tar , in which the files to back up are typed in as part of the command, cpio reads the files to work with from the standard input (in other words, the screen).
This feature means that cpio must be used as part of a multiple command or with a redirection pipe. Examples of this usage are shown in the tables below.
cpio must always be used with one of three flags. Flags are options that set the mode in which the command runs. Only one flag can be used at a time, and it must come before any other options. In addition, the choice of flags limits the options that can be used. Each flag also has a gnu option that can used in its place. The gnu option gives a convenient name for each flag: extract, create, and pass- through.
Read Full article here
-
- Login or register to post comments
Printer-friendly version
- 3944 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
Android/Chrome: GNU/Linux on Chrome OS and Surveillance 'Apps' on Android
| Mozilla: Virtual Reality in Mixed Reality, Taskcluster Development
|
OSS Leftovers
| today's howtos
|
Recent comments
6 hours 34 min ago
1 day 11 hours ago
1 day 12 hours ago
2 days 5 min ago
2 days 1 hour ago
2 days 20 hours ago
2 days 20 hours ago
4 days 48 min ago
5 days 5 hours ago
6 days 12 hours ago