From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Archive files

Archive files

- [Narrator] We often have to archive files and directors for backup purposes. With other operating systems such as Windows we might use the zip tool for this. In linux we use an archiver to preserve meta data such as ownership, permissions, access control lists as well as the file data itself. The tool we usually use is tar, or tap archiver. Tar itself doesn't compress files but leaves that job up to the compression tools. To demonstrate we're going to create an archive of the slash etc directory. In a terminal type in sudo space tar space dash dash x a t t r s space dash c for create v for verbose p for permissions and f followed by the archive file name. We'll call it etc dot tar space and the next argument is what we want to include in the archive in our case it's the slash etc directory. Hit enter then type in your password if prompted. It's a good idea to preserve meta data so we've added the dash dash x a t t r s option which saves extender down tributes including access…

Contents