cs312-lecture9_slides

cs312-lecture9_slides - CS 312 Linux System Administration...

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

View Full Document Right Arrow Icon
CS 312 Linux System Administration 9: Cron, Backups, & Syslog Lance Albertson OSU Picture © Greg Keene used under CC SA 3.0 license
Background image of page 1

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

View Full DocumentRight Arrow Icon
Announcements HW3 Due Today Midterm Review next Tuesday Reading (Read 10.8 up to pg 188, then skip the rest about AMANDA) Man pages: crontab(5), crontab(1), syslog.conf(5)
Background image of page 2
Today's Objectives Cron Backups Syslog
Background image of page 3

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

View Full DocumentRight Arrow Icon
cron Schedule commands automatically /etc/crontab file System crontabs User crontabs Script output gets mail to root
Background image of page 4
Format of crontab files minute hour day month weekday command Environment Variables Time fields Star matches everything Single integer matches exactly Two integers with a dash is a range Comma-separated integers are listed values
Background image of page 5

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

View Full DocumentRight Arrow Icon
Crontab Management crontab -e / edit user crontab crontab -l / list user's crontab entries crontab -u lance / open user lance's crontab crontab -r / remove user crontab Files located in /var/spool/crontab/$username
Background image of page 6
Crontab Management Add entries directly via files Common directories /etc/cron.{hourly,daily,weekly,monthly} Executable scripts /etc/cron.d Like crontab table files /etc/crontab Best to avoid putting stuff in here
Background image of page 7

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

View Full DocumentRight Arrow Icon
Common Uses of Cron Rotate logs Update locate database System accounting System reports Backups Maintenance tasks
Background image of page 8
Backups Data most important part of a machine Types of Backups Disk based (aka rsync to another server) Tape based (long term storage) Different local disks Off-site backups Secure the backups (weakest link) Prepare for the worst
Background image of page 9

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

View Full DocumentRight Arrow Icon
Dumping the filesystem (ext2/3) dump
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/28/2009 for the course CS 312 taught by Professor Staff during the Spring '08 term at Oregon State.

Page1 / 30

cs312-lecture9_slides - CS 312 Linux System Administration...

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

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