Junio C Hamano wrote:That sounds like it'd work, but doesn't it imply that the history of a given file in the backups is not continuous? That is, an old copy of a file on the "weekly" branch doesn't have any kind of ancestor relationship with the same file on the "daily" branch? While that's obviously no different than the current git-less situation where there's no notion of ancestry at all, it'd be neat if this backup scheme could actually track long-term changes to individual files. I wonder if rebasing can get me what I want. Something like: (1) Make a new branch from the latest daily. Commit a full tree snapshot to the new branch. (Each branch has exactly one commit.) (2) To expire a daily backup, rebase the second-oldest daily branch, which will initially be a child of the oldest daily branch, under the latest weekly branch instead. Delete the oldest daily branch. I believe the right commands here would be: git-rebase -s recursive -s ours --onto latest-weekly \ oldest-daily second-oldest-daily git-branch -D oldest-daily (Not sure about the double "-s", but I want it to detect renames where possible and never flag any conflicts.) (3) At the end of the week, instead of expiring the oldest daily branch, rename it to indicate that it's now a weekly snapshot. (That will implicitly do the first part of step 2, since the next daily branch in line will already be a descendant of the newly renamed branch.) Repeat step 2, rebasing against the latest monthly branch, to expire the oldest weekly. (4) To expire an old monthly, rebase the second-oldest monthly branch under the initial empty revision, then delete the oldest monthly. This is basically step 2 again, but rebasing under a fixed starting point. (5) Run git-prune to expire the objects in the deleted branches, then git-repack -a -d to delta-compress everything. That's a bit convoluted, admittedly, and probably a perversion of everything pure about the branch system, but would it work? The big thing I'm not sure about here is whether, after doing my rebase and delete in step 2, the objects from the oldest daily will actually be removed by git-prune. They should be unreachable at that point, I think. -Steve - 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
| Sean | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching |
| Herbert Xu | Re: 2.6.23-rc4-mm1 |
| Miklos Szeredi | Re: [BUG] long freezes on thinkpad t60 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Matthieu Moy | Re: [RFC] Convert builin-mailinfo.c to use The Better String Library. |
| Guido Ostkamp | [PATCH] Fix Solaris Workshop Compiler issues |
| Shawn Pearce | Re: [RFC] Submodules in GIT |
| Imran M Yousuf | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Marco Peereboom | Re: Real men don't attack straw men |
| patrick keshishian | SMTP flood + spamdb |
| Andrés Delfino | Re: bcw(4) is gone |
| Tilman Schmidt | Re: 2.6.25-rc8: FTP transfer errors |
| Denys Fedoryshchenko | SFQ depth limit |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| high memory | 16 hours ago | Linux kernel |
| semaphore access speed | 19 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 20 hours ago | Linux kernel |
| Easter Eggs in windows XP | 23 hours ago | Windows |
| Shared swap partition | 1 day ago | Linux general |
| Root password | 1 day ago | Linux general |
| Where/when DNOTIFY is used? | 1 day ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 1 day ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 1 day ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 1 day ago | Linux general |
