login
Header Space

 
 

Re: Using git as a general backup mechanism

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Grimm <koreth@...>
Cc: <git@...>
Date: Tuesday, December 12, 2006 - 7:43 pm

Steven Grimm <koreth@midwinter.com> writes:


Why not use N independent branches?  I'd illustrate only with
two levels below, but you could:

 (0) make a full tree snapshot.  Store the commit in 'daily'
     branch as its tip.

 (1) A new day comes.  Create an empty branch 'daily' if you
     do not already have one.  Make a full tree snapshot, and
     create a parentless commit for the day if the 'daily'
     branch did not exist, or make it a child of the 'daily'
     commit from the previous day if the branch existed.

 (2) End of week comes.  Create an empty branch 'weekly' if you
     do not already have one.  Make a full tree snapshot, and
     create a parentless commit for the week if the 'weekly'
     branch did not exist, or make it a child of the 'weekly'
     commit from the last week.  Discard 'lastweek' branch if
     you have one, and rename 'daily' branch to 'lastweek'.

At the end of month, you can rename 'weekly' to 'lastmonth'; if
you discard previous 'lastmonth' at this point, you essentially
made files older than two months drop off the backup disk.  You
can add more hierarchy with longer period to extend the scheme
ad infinitum.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Using git as a general backup mechanism, Junio C Hamano, (Tue Dec 12, 7:43 pm)
Re: Using git as a general backup mechanism, Steven Grimm, (Thu Dec 14, 7:33 pm)
Re: Using git as a general backup mechanism, Junio C Hamano, (Thu Dec 14, 8:33 pm)
Re: Using git as a general backup mechanism (was Re: Using G..., Johannes Schindelin, (Tue Dec 12, 6:57 pm)
Re: Using git as a general backup mechanism (was Re: Using G..., Johannes Schindelin, (Tue Dec 12, 8:01 pm)
speck-geostationary