12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ContentsixHow It All Works..........................................................................214Best Practices ...............................................................................216Managing Usernames ............................................................217Managing Passwords .............................................................217Deleting Accounts ................................................................218Structuring Home Directories..................................................218Summary ....................................................................................21910 Techniques for Backup and Recovery 221Writing a Backup Plan ...................................................................222What Data to Back Up ...........................................................222Incremental Versus Full Backups .............................................223Using Amanda for Backups ............................................................223Setting up the Amanda Server .................................................223Setting Up the Amanda Clients ...............................................227Executing the Backup ............................................................230Restoring from Backup ..........................................................232Other <strong>Linux</strong> Backup Utilities ..........................................................232The tar Utility ......................................................................232The rsync Utility ..................................................................233Recovery and Repair .....................................................................234Rescue Mode........................................................................235Single-User Mode..................................................................236Emergency Mode ..................................................................237Filesystem Repair ..................................................................237Boot Loader Repair................................................................237Summary ....................................................................................23811 Automating Tasks with Scripts 239Writing Scripts with Bash...............................................................239Executing Commands in a Bash Script .....................................240Variables .............................................................................242Running the Script................................................................243Conditionals ........................................................................244Loops .................................................................................245Additional Scripting Languages .......................................................247Writing Scripts with Python ...................................................247Writing Scripts with Perl ........................................................247Writing Scripts with Sed.........................................................248Writing Scripts with Awk .......................................................249Scheduling Tasks with Cron ...........................................................249Summary ....................................................................................252

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!