Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. Create a crontab file that will regularly perform the following backup:<?xml:

ID: 3534876 • Letter: 9

Question

9. Create a crontab file that will regularly perform the following backup:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

a.perform a level 0 backup once per month.

b.perform a level 2 dump one day per week.

c.perform a level 5 dump every day on which neither a level 0 nor a level 2 dump is performed.

In the worst –case scenario, how many restore commands would you have to give to recover a file that was dumped using this schedule?

Include chapter and page references with each answer.

Explanation / Answer

Please rate with 5 stars :)


Here are my assumptions:
- if this is a root filesystem backup (with 'dump' command)
- if the destination is a tape drive (/dev/rmt)
- you are on Linux

Then the crontab would look like:
# XXX at 02:00 every 1st day of the month , any month, any day of the week , 0-level dump
0 2 1 * * /sbin/dump -0 /
# XXX at 01:00 every sunday, any month, 2-level dump
0 1 * * 0 /sbin/dump -2 /
# XXX at 01:00 every day, but not the days of 0-level and 2-level dumps (not sunday and not 1st day of the month)
0 1 2-31 * 1-6 /sbin/dump -5 /