Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Devices and File Systems Oracle Solaris 10 1/13 Information Library |
1. Managing Removable Media (Overview/Tasks)
2. Writing CDs and DVDs (Tasks)
4. Dynamically Configuring Devices (Tasks)
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering Disks (Tasks)
10. SPARC: Setting Up Disks (Tasks)
11. x86: Setting Up Disks (Tasks)
12. Configuring Oracle Solaris iSCSI Targets (Tasks)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
16. Configuring Additional Swap Space (Tasks)
17. Checking UFS File System Consistency (Tasks)
18. UFS File System (Reference)
19. Backing Up and Restoring UFS File Systems (Overview/Tasks)
Introduction to Backing Up and Restoring UFS File Systems
Why You Should Back Up File Systems
Planning Which UFS File Systems to Back Up
High-Level View of Backing Up and Restoring UFS File Systems (Task Map)
Considerations for Scheduling Backups
How Often Should You Do Backups?
Backup Interval Terms and Definitions
Guidelines for Scheduling Backups
Using Dump Levels to Create Incremental Backups
Example--Dump Levels for Daily, Cumulative Backups
Example--Dump Levels for Daily, Incremental Backups
Example--Daily Cumulative, Weekly Cumulative Backup Schedule
Tape Requirements for the Daily Cumulative, Weekly Cumulative Schedule
Example--Daily Cumulative, Weekly Incremental Backup Schedule
Tape Requirements for the Daily Cumulative, Weekly Incremental Backup Schedule
Example--Daily Incremental, Weekly Cumulative Backup Schedule
Tape Requirements for Daily Incremental, Weekly Cumulative Schedule
Backing Up UFS Files and File System (Task Map)
Preparing for File System Backups
How to Find UFS File System Names
How to Determine the Number of Tapes Needed for a Full Backup
How to Back Up a UFS File System to Tape
Restoring UFS Files and File System Backups (Task Map)
Preparing to Restore UFS Files and File Systems
Determining the UFS File System Name
Determining the Type of Tape Device You Need
Determining the Tape Device Name
Restoring UFS Files and File Systems
How to Determine Which Tapes to Use
How to Restore UFS Files Interactively
How to Restore Specific UFS Files Noninteractively
How to Restore a Complete UFS File System
How to Restore a UFS root (/) and /usr File System
20. Using UFS Snapshots (Tasks)
21. Copying Files and File Systems (Tasks)
22. Managing Tape Drives (Tasks)
Use this task map to identify all the tasks for backing up and restoring file systems. Each task points to a series of additional tasks, such as determining the type of backup to perform.
|
A backup schedule is the schedule that you establish to run the ufsdump command. This section identifies considerations to think about when you create a backup schedule. This section also includes sample backup schedules.
The backup schedule that you create depends on the following:
Your need to minimize the number of tapes that are used for backups
The time available for doing backups
The time available for doing a full restore of a damaged file system
The time available for retrieving individual files that are accidentally deleted
If you do not need to minimize time requirements and the number of media that is used for backups, you can do full backups every day. However, this backup method is not realistic for most sites, so incremental backups are used most often. In this case, you should back up your site enough to so that you can restore files from the last four weeks. This schedule requires at least four sets of tapes, one set for each week. You would then reuse the tapes each month. In addition, you should archive the monthly backups for at least a year. Then, keep yearly backups for a number of years.
The following table describes backup interval terms and definitions.
|
The following table provides guidelines for scheduling backups. For additional backup schedule considerations, see Considerations for Scheduling Backups.
Table 19-6 Guidelines for Backup Schedules
|
The dump level you specify in the ufsdump command (0–9) determines which files are backed up. Dump level 0 creates a full backup. Levels 1–9 are used to schedule incremental backups, but have no defined meanings. Levels 1–9 are just a range of numbers that are used to schedule cumulative or discrete backups. The only meaning levels 1–9 have is in relationship to each other, as a higher or lower number. A lower dump number always restarts a full or a cumulative backup. The following examples show the flexibility of the incremental dump procedure using levels 1–9.
Doing daily, cumulative incremental backups is the most commonly used backup schedule and is recommended for most situations. The following example shows a schedule that uses a level 9 dump Monday through Thursday, and a level 5 dump on Friday restarts process.
Figure 19-1 Incremental Backup: Daily Cumulative
In the preceding example, you could have used other numbers in the 1–9 range to produce the same results. The key is using the same number Monday through Thursday, with any lower number on Friday. For example, you could have specified levels 4, 4, 4, 4, 2 or 7, 7, 7, 7, 5.
The following example shows a schedule where you capture only a day's work on different tapes. This type of backup is referred to as a daily, incremental backup. In this case, sequential dump level numbers are used during the week (3, 4, 5, 6) with a lower number (2) on Friday. The lower number on Friday restarts the processing.
Figure 19-2 Incremental Backup: Daily Incremental
In the preceding example, you could have used the sequence 6, 7, 8, 9 followed by 2, or 5, 6, 7, 8 followed by 3. Remember, the numbers themselves have no defined meaning. You attribute meaning by ordering them in a specified sequence, as described in the examples.
This section provides sample backup schedules. All schedules assume that you begin with a full backup (dump level 0), and that you use the -u option to record each backup in the /etc/dumpdates file.
Table 19-7 shows the most commonly used incremental backup schedule. This schedule is recommended for most situations. With this schedule, the following occurs:
Each day, all files that have changed since the lower-level backup at the end of the previous week are saved.
For each weekday level 9 backup, the previous level 0 or level 5 backup is the closest backup at a lower level. Therefore, each weekday tape contains all the files that changed since the end of the previous week or the initial level 0 backup for the first week.
For each Friday level 5 backup, the closest lower-level backup is the level 0 backup done at the beginning of the month. Therefore, each Friday's tape contains all the files changed during the month up to that point.
Table 19-7 Daily Cumulative/Weekly Cumulative Backup Schedule
|
The following table shows how the contents of the tapes can change across two weeks with the daily cumulative, weekly cumulative schedule. Each letter represents a different file.
Table 19-8 Contents of Tapes for Daily Cumulative/Weekly Cumulative Backup Schedule
|
With this schedule, you need six tapes if you want to reuse daily tapes. However, you need nine tapes if you want to use four different daily tapes:
One tape for the level 0 backup
Four tapes for Fridays
One or four daily tapes
If you need to restore a complete file system, you need the following tapes:
The level 0 tape
The most recent Friday tape
The most recent daily tape since the last Friday tape, if any
The following table shows a schedule where each weekday tape accumulates all files that changed since the beginning of the week, or the initial level 0 backup for the first week. In addition, each Friday's tape contains all the files that changed that week.
Table 19-9 Daily Cumulative, Weekly Incremental Backup Schedule
|
The following table shows how the contents of the tapes can change across two weeks with the daily cumulative, weekly incremental backup schedule. Each letter represents a different file.
Table 19-10 Contents of Tapes for Daily Cumulative, Weekly Incremental Backup Schedule
|
With this schedule, you need six tapes if you want to reuse daily tapes. However, you need nine tapes if you want to use four different daily tapes:
One tape for the level 0 backup
Four tapes for Fridays
One or four daily tapes
If you need to restore a complete file system, you need the following tapes:
The level 0 tape
All the Friday tapes
The most recent daily tape since the last Friday tape, if any
The following table shows a schedule where each weekday tape contains only the files that changed since the previous day. In addition, each Friday's tape contains all files changed since the initial level 0 backup at the beginning of the month.
Table 19-11 Daily Incremental, Weekly Cumulative Backup Schedule
|
The following table shows how the contents of the tapes can change across two weeks with the daily incremental, weekly cumulative schedule. Each letter represents a different file.
Table 19-12 Contents of Tapes for Daily Incremental, Weekly Cumulative Backup Schedule
|
With this schedule, you need at least 9 tapes if you want to reuse daily tapes, which is not recommended. Preferably, you need 21 tapes if you save weekly tapes for a month: one tape for the level 0, 4 tapes for the Fridays, and 4 or 16 daily tapes.
1 tape for the level 0 backup
4 tapes for all the Friday backups
4 or 16 daily tapes
If you need to restore the complete file system, you need the following tapes:
The level 0 tape
The most recent Friday tape
All the daily tapes since the last Friday tape, if any
The following table shows an example backup strategy for a heavily used file server on a small network where users are doing file-intensive work, such as program development or document production. This example assumes that the backup period begins on a Sunday and consists of four seven-day weeks.
Table 19-13 Example of Monthly Backup Schedule for a Server
|
With this schedule, you use 4n tapes, the number of tapes needed for 4 full backups of the root (/), /usr, /export, and /export/home file systems. Also, you need 24 additional tapes for the incremental backups of the /export/home file systems. This schedule assumes that each incremental backup uses one tape and that you save the tapes for a month.
Here's how this schedule works:
On each Sunday, do a full backup (level 0) of the root (/), /usr, /export, and /export/home file systems. Save the level 0 tapes for at least three months.
On the first Monday of the month, use tape A to do a level 9 backup of the /export/home file system. The ufsdump command copies all files changed since the previous lower-level backup. In this case, the previous lower-level backup is the level 0 backup that you did on Sunday.
On the first Tuesday of the month, use tape B to do a level 9 backup of the /export/home file system. Again, the ufsdump command copies all files changed since the last lower-level backup, which is Sunday's level 0 backup.
On the first Wednesday of the month, use tape C to do a level 5 backup of the /export/home file system. The ufsdump command copies all files that changed since Sunday.
Do the Thursday and Friday level 9 backups of the /export/home file system on tapes D and E. The ufsdump command copies all files that changed since the last lower-level backup, which is Wednesday's level 5 backup.
On the first Saturday of the month, use tape F to do a level 5 backup of /export/home. The ufsdump command copies all files changed since the previous lower-level backup (in this case, the level 0 backup you did on Sunday). Store tapes A–F until the first Monday of the next four-week period, when you use them again.
Repeat steps 1–6 for the next three weeks, using tapes G–L and 4n tapes for the level 0 backup on Sunday, and so on.
For each four-week period, repeat steps 1–7, using a new set of tapes for the level 0 backups and reusing tapes A–X for the incremental backups. The level 0 tapes could be reused after three months.
This schedule lets you save files in their various states for a month. This plan requires many tapes, but ensures that you have a library of tapes to draw upon. To reduce the number of tapes, you could reuse Tapes A–F each week.