git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rules for backup discussion
@ 2017-10-28 12:49 Jason Pyeron
  2017-10-28 14:27 ` Igor Djordjevic
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Pyeron @ 2017-10-28 12:49 UTC (permalink / raw)
  To: git

I would like to efficiently backup my project directories.

I am thinking that the backup of a git enabled project should only backup the following sets of files:

Files under .git/
The results of git clean -ndx
The results of git status

Does this make sense? Is there a less expensive way to calculate the backup file set? I ask because sometime git status takes a long time.

-Jason


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

* Re: Rules for backup discussion
  2017-10-28 12:49 Rules for backup discussion Jason Pyeron
@ 2017-10-28 14:27 ` Igor Djordjevic
  0 siblings, 0 replies; 2+ messages in thread
From: Igor Djordjevic @ 2017-10-28 14:27 UTC (permalink / raw)
  To: Jason Pyeron, git

Hi Jason,

On 28/10/2017 14:49, Jason Pyeron wrote:
> I would like to efficiently backup my project directories.
> 
> I am thinking that the backup of a git enabled project should only backup the following sets of files:
> 
> Files under .git/
> The results of git clean -ndx
> The results of git status
> 
> Does this make sense? Is there a less expensive way to calculate the backup file set? I ask because sometime git status takes a long time.

What do you consider being an "efficient backup", which files are you 
actually interested in making the backup of...?

Do you use submodules? If not, and if your backup thoughts show the 
idea of files you want to keep (committed + untracked + ignored + 
modified, basically all of them), I think the easiest approach is to 
just backup the whole project folder - that way you keep committed 
history (".git" subfolder/repository) plus all additional uncommitted 
work as well (untracked/ignored/modified files inside the working 
tree), and no extra calculations are needed.

In case you don`t care about uncommitted stuff, you can just backup 
".git" subfolder (the repository), it keeps project`s whole history, 
with all versions of all the files in it (thus latest included).

Regards,
Buga

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

end of thread, other threads:[~2017-10-28 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-28 12:49 Rules for backup discussion Jason Pyeron
2017-10-28 14:27 ` Igor Djordjevic

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).