Language Selection

English French German Italian Portuguese Spanish

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

Filed under
Linux
Gentoo
Slack
SUSE
Ubuntu

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

More in Tux Machines

today's leftovers

today's leftovers

  • Why leading DevOps may get you a promotion
    Gene Kim, author of The Phoenix Project and leading DevOps proponent, seems to think so. In a recent interview with TechBeacon's Mike Perrow, Kim notes that of "the nearly 100 speakers at DevOps Enterprise Summits over the last two years, about one in three have been promoted."
  • Cloud Vendors, The Great Disruptors, Face Disruption From Blockchain
  • SWORDY, a local party brawler could come to Linux if Microsoft allow it
    SWORDY is a rather fun looking local party brawler that has just released on Steam in Early Access. It could see a Linux release too, if Microsoft allow it.
  • System Shock remake has blasted past the Linux stretch goal, officially coming to Linux
    The Linux stretch goal was $1.1 million and it's pleasing to see it hit the goal, so we won't miss out now. I am hoping they don't let anyone down, as they have shown they can do it already by providing the demo. There should be no reason to see a delay with Linux now.
  • GammaRay 2.5 release
    GammaRay 2.5 has been released, the biggest feature release yet of our Qt introspection tool. Besides support for Qt 5.7 and in particular the newly added Qt 3D module a slew of new features awaits you, such as access to QML context property chains and type information, object instance statistics, support for inspecting networking and SSL classes, and runtime switchable logging categories.
  • GammaRay 2.5 Released For Qt Introspection
    KDAB has announced the release of GammaRay 2.5, what they say is their "biggest feature release yet", the popular introspection tool for Qt developers.
  • The new Keyboard panel
    After implementing the new redesigned Shell of GNOME Control Center, it’s now time to move the panels to a bright new future. And the Keyboard panel just walked this step.
  • Debian on Seagate Personal Cloud and Seagate NAS
    The majority of NAS devices supported in Debian are based on Debian's Kirkwood platform. This platform is quite dated now and can only run Debian's armel port. Debian now supports the Seagate Personal Cloud and Seagate NAS devices. They are based on Marvell's Armada 370, a platform which can run Debian's armhf port. Unfortunately, even the Armada 370 is a bit dated now, so I would not recommend these devices for new purchases. If you have one already, however, you now have the option to run native Debian.

OSS Leftovers