{"thread":{"id":"47055","subject":"Rules for backup discussion","startedAt":"2017-10-28T12:49:13Z","lastAt":"2017-10-28T14:28:03Z","messageCount":2,"participants":["Jason Pyeron","Igor Djordjevic"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"331219","messageId":"C29FBE3637EA47B9AEDD7895339AB8C8@blackfat","threadId":"47055","inReplyTo":null,"subject":"Rules for backup discussion","fromName":"Jason Pyeron","fromEmail":"jpyeron@pdinc.us","sentAt":"2017-10-28T12:49:08Z","receivedAt":"2017-10-28T12:49:13Z","isPatch":false,"sender":{"key":"jpyeron@pdinc.us","avatar":"https://gravatar.com/avatar/c2e53452caa53d940768a1ffc9cf76196d851b9b534b7a39cd39852a70a0508f?d=mp&s=160"},"body":"I would like to efficiently backup my project directories.\n\nI am thinking that the backup of a git enabled project should only backup the following sets of files:\n\nFiles under .git/\nThe results of git clean -ndx\nThe results of git status\n\nDoes 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.\n\n-Jason\n\n"},{"id":"331221","messageId":"3028f1a1-1311-b9e2-562f-08817a9daa94@gmail.com","threadId":"47055","inReplyTo":"C29FBE3637EA47B9AEDD7895339AB8C8@blackfat","subject":"Re: Rules for backup discussion","fromName":"Igor Djordjevic","fromEmail":"igor.d.djordjevic@gmail.com","sentAt":"2017-10-28T14:27:51Z","receivedAt":"2017-10-28T14:28:03Z","isPatch":false,"sender":{"key":"igor.d.djordjevic@gmail.com","avatar":null},"body":"Hi Jason,\n\nOn 28/10/2017 14:49, Jason Pyeron wrote:\n> I would like to efficiently backup my project directories.\n> \n> I am thinking that the backup of a git enabled project should only backup the following sets of files:\n> \n> Files under .git/\n> The results of git clean -ndx\n> The results of git status\n> \n> 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.\n\nWhat do you consider being an \"efficient backup\", which files are you \nactually interested in making the backup of...?\n\nDo you use submodules? If not, and if your backup thoughts show the \nidea of files you want to keep (committed + untracked + ignored + \nmodified, basically all of them), I think the easiest approach is to \njust backup the whole project folder - that way you keep committed \nhistory (\".git\" subfolder/repository) plus all additional uncommitted \nwork as well (untracked/ignored/modified files inside the working \ntree), and no extra calculations are needed.\n\nIn case you don`t care about uncommitted stuff, you can just backup \n\".git\" subfolder (the repository), it keeps project`s whole history, \nwith all versions of all the files in it (thus latest included).\n\nRegards,\nBuga\n"}]}