O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. The Backup Plan

In this chapter, we will cover:

  • Archiving with tar
  • Archiving with cpio
  • Compressing with gunzip (gzip)
  • Compressing with bunzip (bzip)
  • Compressing with lzma
  • Archiving and compressing with zip
  • Heavy compression squashfs fileystem
  • Encrypting files and folders (with standard algorithms)
  • Backup snapshots with rsync
  • Version controlled backups with git
  • Cloning disks with dd

Introduction

Taking snapshots and backups of data are regular tasks we come across. When it comes to a server or large data storage systems, regular backups are important. It is possible to automate backups via shell scripting. Archiving and compression seems to find usage in the everyday life of a system admin or a regular user. There are various compression formats ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required