Re: Dump levels ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rich Kulawiec
Date: Friday, February 19, 2010 - 11:08 am

On Thu, Feb 18, 2010 at 10:54:55PM +0100, Jean-Francois wrote:

A dump at level N includes everything modified since the last dump
at N-1 or lower.

Thus, for example, if on Monday we do a level 0 dump of /foo, and then
on Tuesday, we do a level 1 dump of /foo, that second dump will contain
everything that's changed in the last day.

If on Wednesday, we do a level 3 dump of /foo (note that I skipped level
2 on purpose) then we will have everything that changed since Tuesday,
since 3 > 1.

If on Thursday, we NOW do a level 2 dump of /foo, we will have everything
that changed since the level 1 on Tuesday -- two days' worth of changes.

This all works as planned provided you give "u" flag to dump, which
instructs it keep track (in /etc/dumpdates) of which filesystems it
has dumped and when.  Note (a) that filesystems are tracked by device,
so that if you umount /foo and remount it as /bar, the right thing
happens and (b) the timestamp used is the time that the dump BEGINS,
but it is not written into the file until the dump ENDS.  (This is
part of the set of mechanisms which deal with changes that take place
while dump is running.)

Dump's various levels provide a lot of ways to minimize one or more
of (1) dump run time (2) dump output size (3) number of dumps required
to restore a failed filesystem.  For example, if you did level 0 dumps
every day, you would maximize (1) and (2) but minimize (3), since it would
always be 1.  For another example, if you did level 0 dumps on Sunday
and 1-6 Monday-Saturday, then you would cut down (1) and (2) considerably
six days a week, but you might need to restore as many as 7 dumps
which means you've pushed (3) fairly high.  So choosing which scheme
is appropriate for you requires having knowledge of your environment
and answering questions like:

	- how much backup space do you have?
	- do you lose entire disks often?
	- do your users screw up and require restores often?
	- do you have an open or limited backup window?
	- what are you backing up?
	- does the data you're backup up compress well?

among many others.  None of the schemes thus derived are really
"right" or "wrong" per se, as long as data can be retrieved;
they're just more or less optimal given the environment.

---Rsk
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Dump levels ?, Jean-Francois, (Thu Feb 18, 2:54 pm)
Re: Dump levels ?, Otto Moerbeek, (Thu Feb 18, 3:02 pm)
Re: Dump levels ?, Gilles Chehade, (Thu Feb 18, 3:04 pm)
Re: Dump levels ?, andres, (Thu Feb 18, 3:11 pm)
Re: Dump levels ?, Jean-Francois, (Thu Feb 18, 3:21 pm)
Re: Dump levels ?, Adriaan, (Thu Feb 18, 3:43 pm)
Re: Dump levels ?, Otto Moerbeek, (Thu Feb 18, 3:46 pm)
Re: Dump levels ?, Jean-Francois, (Thu Feb 18, 3:51 pm)
Re: Dump levels ?, Rich Kulawiec, (Fri Feb 19, 11:08 am)
Re: Dump levels ?, Otto Moerbeek, (Fri Feb 19, 1:15 pm)
Re: Dump levels ?, Jean-Francois, (Fri Feb 19, 1:49 pm)
Re: Dump levels ?, Otto Moerbeek, (Fri Feb 19, 1:58 pm)
Re: Dump levels ?, Philip Guenther, (Fri Feb 19, 2:04 pm)
Re: Dump levels ?, Greg Thomas, (Fri Feb 19, 8:44 pm)
Re: Dump levels dump(8) man page clarification, Jean-Francois, (Sat Feb 20, 2:27 am)
Re: Dump levels ?, Jean-Francois, (Wed Mar 3, 4:21 pm)
Re: Dump levels ?, Kapetanakis Giannis, (Wed Mar 3, 5:03 pm)