CS252 Lab2 - CS252 Lab2 Writing a Shell Script to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS252 Lab2 Writing a Shell Script to Automatically Backup a Directory Goal In this lab you will learn shell scripting using bash. Part 1: Shell Scripting A shell is an application program that interprets the commands that a user types and executes programs. There are several shell programs: Bourne shell (sh, bsh), C-Shell (csh), Korn-shell (ksh), T-cshell (tcsh) , and bash . You will use bash in this lab to implement your shell script. First of all, read the notes about shell programming in Unix Shell Scripting (google also "bash tutorial" for other tutorials) and study the examples in the lab2-src directory. You can get those examples by downloading the file lab2-src.tar.gz and by typing: bash> gunzip lab2-src.tar.gz bash> tar -xvf lab2-src.tar Now that you are an expert in shell scripting write the following script to automatically back up a directory. Part 2: Write a Backup Script Write a backup script backupd.sh that will automatically backup a directory. backupd.sh dir backupdir interval-secs
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University.

Page1 / 3

CS252 Lab2 - CS252 Lab2 Writing a Shell Script to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online