He has one Schedule that accomplishes this, and a second Schedule that does the same thing for the Catalog backup run each day after the main backup (Priorities were not available when this script was written). What is important is to create a different Pool for each day of the week, and on the run statement in the Schedule, to specify which Pool is to be used. Nic Bellamy has supplied an actual working model of this which we include here. In addition, you will need to specify appropriate Job and File retention periods so that Bareos will relabel and overwrite the tape each week rather than appending to it. The simplest way to “force” Bareos to use a different tape each day is to define a different Pool for each day of the the week a backup is done. Practical Details of Daily Tape Rotation Initial setup of Bareos to run in this mode is more complicated than the Single tape system described above.ĭepending on the number of systems you have and their data capacity, it may not be possible to do a Full backup every night for time reasons or reasons of tape capacity. There is much more movement of the tape each day (rewinds) leading to shorter tape drive life time. If the wrong tape is inadvertently mounted, the Backup for that day will not occur exposing the system to data loss. More errors will occur because of human mistakes. The tape must be changed every day requiring a lot of operator intervention. Advantages of Daily Tape Rotation Īll the data is stored on a single tape, so recoveries are simple and faster.Īssuming the previous day’s tape is taken offsite each day, a maximum of one days data will be lost if the site burns down. Modifications of it based on two week cycles or longer. Thus if backups are done Monday through Friday only, you need only five tapes, and by having two Friday tapes, you need a total of six tapes. Variations are to use a different tape each Friday, and possibly at the beginning of the month. Generally, the backup will cycle continuously through five or six tapes each week. This scheme is quite different from the one mentioned above in that a Full backup is done to a different tape every day of the week. #!/bin/sh bconsole << END_OF_DATA unmount storage = your - storage - name END_OF_DATA # the following is a shell command mt eject bconsole << END_OF_DATA mount storage = your - storage - name END_OF_DATA This could also be an Admin job that runs after all your backup jobs. Use a RunAfterJob statement to run a script after your last job. This is not very efficient, but does let you change the tape whenever you want. If you run several jobs, the tape will be rewound and repositioned to the end at the beginning of every job. In this case, Bareos will release the tape after every job. In your Storage daemon’s Device resource, set AlwaysOpen = no. If you do not wish to interact with Bareos to change each tape, there are several ways to get Bareos to release the tape: If you use the strategy presented above, Bareos will ask you to change the tape, and you will unmount it and then remount it when you have inserted the new tape. To minimize the amount of data written to the tape, one can do a Full backup once a month on the first Sunday of the month, a Differential backup on the 2nd-5th Sunday of the month, and incremental backups the rest of the week. Using this strategy, one typically does a Full backup once a week followed by daily Incremental backups. In most cases after the label, Bareos will automatically mount the tape and resume the backup. When the tape fills and Bareos requests a new tape, you unmount the tape from the Console program, insert a new tape and label it. If your site burns down, you will lose your current backupsĪfter a tape fills and you have put in a blank tape, the backup will continue, and this will generally happen during working hours. You can easily arrange for the Full backup to occur a different night of the month for each system, thus load balancing and shortening the backup time. Typically the best case will be one tape and worst two. There is little chance of operator error because the tape is not changed daily.Ī minimum number of tapes will be needed for a full restore. The operator intervenes only when a tape change is needed (e.g. Probably the simplest strategy is to back everything up to a single tape and insert a new (or recycled) tape when it fills and Bareos requests a new one. Although Recycling and Backing Up to Disk Volume have been discussed in previous chapters, this chapter is meant to give you an overall view of possible backup strategies and to explain their advantages and disadvantages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |