O'Reilly logo

Linux and Unix Shell Programming by David Tansley

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

27.2. backup_gen

I have included backup_gen not because it shows how to back up directories, but because it is a good example of how to share common settings amongst other scripts.

The backup_gen is a backup script that reads in a default configuration file which is then used for a backup of the system. A user can alter the default settings if he or she wishes. This script is a good example of how different scripts can use the same settings or change them just for the script’s run time. When the script executes, it makes sure the source file (backup.defaults) is present. The script will exit if it cannot be found.

A screen header and the default settings are displayed. The user is asked if he or she wants to change any of the default settings. ...

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