git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* File versioning based on shallow Git repositories?
@ 2018-04-12 18:01 Hallvard Breien Furuseth
  2018-04-12 18:47 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 9+ messages in thread
From: Hallvard Breien Furuseth @ 2018-04-12 18:01 UTC (permalink / raw)
  To: git

Can I use a shallow Git repo for file versioning, and regularly purge
history older than e.g. 2 weeks?  Purged data MUST NOT be recoverable.

Or is there a backup tool based on shallow Git cloning which does this?
Push/pull to another shallow repo would be nice but is not required.
The files are text files up to 1/4 Gb, usually with few changes. 


If using Git - I see "git fetch --depth" can shorten history now.
How do I do that without 'fetch', in the origin repo?
Also Documentation/technical/shallow.txt describes some caveats, I'm
not sure how relevant they are.

To purge old data -
  git config core.logallrefupdates false
  git gc --prune=now --aggressive
Anything else?

I'm guessing that without --aggressive, some expired info might be
deduced from studying the packing of the remaining objects.  Don't
know if we'll be required to be that paranoid.

-- 
Hallvard

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-13 21:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12 18:01 File versioning based on shallow Git repositories? Hallvard Breien Furuseth
2018-04-12 18:47 ` Ævar Arnfjörð Bjarmason
2018-04-12 19:36   ` Hallvard Breien Furuseth
2018-04-12 20:46     ` Ævar Arnfjörð Bjarmason
2018-04-12 21:07       ` Rafael Ascensao
2018-04-12 21:22         ` Hallvard Breien Furuseth
2018-04-13  8:52     ` Jakub Narebski
2018-04-13 11:12       ` Johannes Schindelin
2018-04-13 21:57         ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).