1 / 34

Chapter 12 Backing Up and Restoring

Chapter 12 Backing Up and Restoring. Backup Methodology. tar Command. $ tar _ _ _ files.tar file1 file2 tar function(s) archivefile filename (s). first character position: c(reate) t(able of contents) x(extract) second character position: v = verbose

trudy
Download Presentation

Chapter 12 Backing Up and Restoring

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 12 Backing Up and Restoring

  2. Backup Methodology

  3. tar Command $ tar _ _ _ files.tar file1 file2 tar function(s) archivefile filename (s) • first character position: • c(reate) • t(able of contents) • x(extract) • second character position: • v = verbose • third character position: • f = filename • none = default device

  4. compress & uncompress Commands Compress the file $ compress -v bin.file bin.file: compression: 53.81% -- replaced with bin.file.Z List the file to see compressed size $ ls -l bin.file.Z -rw-r--r-- 1 user2 staff 26500 Mar 22 09:17 bin.file.Z Uncompress the file and list again $ uncompress -v bin.file.Z bin.file.Z: -- replaced with bin.file $ ls -l bin.file -rw-r--r-- 1 user2 staff 57380 Mar 22 09:17 bin.file

  5. Backing Up Home Directory

  6. Extracting Files with tar $ cd $ mkdir newhome $ cd newhome $ tar xv $ uncompress home.tar.Z $ tar xvf home.tar

  7. Using the jar Command (java archive) combines multiple files and compresses in one step syntax and options almost identical to tar

  8. CDE Archive & Compress

  9. Labs/Assessment Lab 12.4.1 Using Archive Tools - tar, compress and jar Lab 12.5.2 Using CDE to Archive, Compress and Restore chapter 12 assessment

  10. Chap 12 Exercises 1. make a new directory

  11. Chap 12 Exercises 1. make a new directory $ mkdir homedir

  12. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify

  13. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home*

  14. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents

  15. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar

  16. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify

  17. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home

  18. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to homedir

  19. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to homedir $ cp /tmp/homefiles.tar.Z ~/homedir

  20. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to home.dir $ cp /tmp/homefiles.tar.Z ~/homedir 6. uncompress that file

  21. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to home.dir $ cp /tmp/homefiles.tar.Z ~/homedir 6. uncompress that file $ uncompress homefiles.tar.Z

  22. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to home.dir $ cp /tmp/homefiles.tar.Z ~/homedir 6. uncompress that file $ uncompress homefiles.tar.Z 7. extract the contents and verify

  23. Chap 12 Exercises 1. make a new directory $ mkdir homedir 2. backup all files to this file & verify $ tar cvf /tmp/homefiles.tar ~ $ ls /tmp/home* 3. list contents $ tar tvf /tmp/homefiles.tar 4. compress file & verify $ compress -v /tmp/homefiles.tar $ ls /tmp/home 5. copy to home.dir $ cp /tmp/homefiles.tar.Z ~/homedir 6. uncompress that file $ uncompress homefiles.tar.Z 7. extract the contents and verify $ tar xvf homefiles.tar $ ls

  24. Chap 12 Exercises 1. go to home directory

  25. Chap 12 Exercises 1. go to home directory $ cd

  26. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file

  27. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1

  28. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents

  29. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents $ jar tvf /tmp/dir1files.jar

  30. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents $ jar tvf /tmp/dir1files.jar 4. remove directory 1 and verify

  31. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents $ jar tvf /tmp/dir1files.jar 4. remove directory 1 and verify $ rm -r dir1 $ ls

  32. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents $ jar tvf /tmp/dir1files.jar 4. remove directory 1 and verify $ rm -r dir1 $ ls 5. extract the archived dir1 to your current directory

  33. Chap 12 Exercises 1. go to home directory $ cd 2. compress & archive a file $ jar cvf /tmp/dir1files.jar dir1 3. list contents $ jar tvf /tmp/dir1files.jar 4. remove directory 1 and verify $ rm -r dir1 $ ls 5. extract the archived dir1 to your current directory $ jar xvf /tmp/dir1files.jar

More Related