{"thread":{"id":"35709","subject":"Conceptual Question for git usage ...","startedAt":"2014-01-22T14:20:41Z","lastAt":"2014-01-22T15:23:32Z","messageCount":3,"participants":["John McIntyre","Andrew Keller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233510","messageId":"CABQ4iYjfa1X0KkMm=VtoRt2j65E1cce7TyY_PU8WFr8DPQEtjw@mail.gmail.com","threadId":"35709","inReplyTo":null,"subject":"Conceptual Question for git usage ...","fromName":"John McIntyre","fromEmail":"joh98.mac@gmail.com","sentAt":"2014-01-22T14:20:41Z","receivedAt":"2014-01-22T14:20:41Z","isPatch":false,"sender":{"key":"joh98.mac@gmail.com","avatar":null},"body":"Hi,\nI want to install git onto my home network - in fact, truth be told,\nit's already on my server, but I have some questions as to its\nimplementation.\n\nFirst of all, my network.  At the 'centre' (practically, if not\nlogically) is my Mac.  I consider this my 'central repository' of\neverything.  Mail, documents, blog posts etc.  Everything is on this\nmachine.  The Mac is backed up i) to an external drive with Time\nMachine, ii) to my Linux server (more on that below) via rsync and\niii) to my personal Linux laptop which sits on 27/7 at work via rsync.\n\nMy server.  This is a Linux server runing CentOS 6.5, and working as a\nwebserver, fileserver, MySQL server, mail server (primary MX), and is\nthe 'public face' of my domain name.\n\nThen there are two other Linux servers - one running MySQL\nreplication, and the other as a publically-accessible 'sandbox' on\nwhich people whom I train can connect via a specific port, and mess\naround, with no possibility that what they do will damage other parts\nof the LAN.\n\nSo basically, what I'd like to do is this.  I want to write code,\nwrite blg posts, write essays for university, whatever.  And I want to\nuse git to maintain revisions, but where do I store them?  Do I make\nthe Mac my hub?  I have a git client on there.  Do I make the server\nmy 'hub'?  If I make the server the 'hub', then won't rsync back-ups\nfrom the Mac to the server wipe them out?\n\nI confess that my preference would be to use the server, because I\noccasionally bring the Linux laptop home from the office and use that,\nand don't want to connect it to the Mac.\n\nAnyway, basically .. that's it.  Any ideas would be appreciated.  Thanks.\n"},{"id":"233513","messageId":"CCFA1C8D-F0E3-43D9-87FD-B62807DB7EA8@kellerfarm.com","threadId":"35709","inReplyTo":"CABQ4iYjfa1X0KkMm=VtoRt2j65E1cce7TyY_PU8WFr8DPQEtjw@mail.gmail.com","subject":"Re: Conceptual Question for git usage ...","fromName":"Andrew Keller","fromEmail":"andrew@kellerfarm.com","sentAt":"2014-01-22T15:03:58Z","receivedAt":"2014-01-22T15:03:58Z","isPatch":false,"sender":{"key":"andrew@kellerfarm.com","avatar":"https://avatars.githubusercontent.com/u/304204?v=4"},"body":"On Jan 22, 2014, at 9:20 AM, John McIntyre <joh98.mac@gmail.com> wrote:\n\n> …\n> \n> So basically, what I'd like to do is this.  I want to write code,\n> write blg posts, write essays for university, whatever.  And I want to\n> use git to maintain revisions, but where do I store them?  Do I make\n> the Mac my hub?  I have a git client on there.  Do I make the server\n> my 'hub'?  If I make the server the 'hub', then won't rsync back-ups\n> from the Mac to the server wipe them out?\n> \n> …\n\nGit's degree of flexibility in what is considered \"the server\" is valuable here.  I advise that you simply try a configuration, and see how it works.  It's easy to change where origin points later.\n\nWith that said, like you, I have a small ad-hoc setup of automated rsync backups between my various computers and servers, and I have found some characteristics useful:\n\n* I have rsync saving backups into dedicated backup folders on the remote machines.  This eliminates ambiguity of what to back up (server A won't blow away server B's Documents folder, for example).\n\n* Using a publicly accessible server has been useful.  I set up port forwarding to the machine, and set up a domain name pointing to the server.  In general, when I have Internet access, I can access the server that contains my repositories.  I always use the same domain name, even if I'm in the same room as the server.\n\nHope that helps,\nAndrew\n"},{"id":"233515","messageId":"CABQ4iYjVSh_yG0jzc104LJ2hr9GhNnKrCZNw9337t+s4CiWryg@mail.gmail.com","threadId":"35709","inReplyTo":"CCFA1C8D-F0E3-43D9-87FD-B62807DB7EA8@kellerfarm.com","subject":"Re: Conceptual Question for git usage ...","fromName":"John McIntyre","fromEmail":"joh98.mac@gmail.com","sentAt":"2014-01-22T15:23:32Z","receivedAt":"2014-01-22T15:23:32Z","isPatch":false,"sender":{"key":"joh98.mac@gmail.com","avatar":null},"body":"Thank you for that, Andrew.\n\nI'm going to follow your advice and just set up a test repository,\nwhich won't be a disaster, if it gets damaged or erased.\n\nI backup my /Users/john/Documents from my Mac to /home/john/Documents\non the Linux server.  Except for my mail directory, which comes from\n$HOME/Library/Mail and lives on $HOME/.mac.mail.backup on the server.\n\n2014/1/22 Andrew Keller <andrew@kellerfarm.com>:\n> On Jan 22, 2014, at 9:20 AM, John McIntyre <joh98.mac@gmail.com> wrote:\n>\n>> …\n>>\n>> So basically, what I'd like to do is this.  I want to write code,\n>> write blg posts, write essays for university, whatever.  And I want to\n>> use git to maintain revisions, but where do I store them?  Do I make\n>> the Mac my hub?  I have a git client on there.  Do I make the server\n>> my 'hub'?  If I make the server the 'hub', then won't rsync back-ups\n>> from the Mac to the server wipe them out?\n>>\n>> …\n>\n> Git's degree of flexibility in what is considered \"the server\" is valuable here.  I advise that you simply try a configuration, and see how it works.  It's easy to change where origin points later.\n>\n> With that said, like you, I have a small ad-hoc setup of automated rsync backups between my various computers and servers, and I have found some characteristics useful:\n>\n> * I have rsync saving backups into dedicated backup folders on the remote machines.  This eliminates ambiguity of what to back up (server A won't blow away server B's Documents folder, for example).\n>\n> * Using a publicly accessible server has been useful.  I set up port forwarding to the machine, and set up a domain name pointing to the server.  In general, when I have Internet access, I can access the server that contains my repositories.  I always use the same domain name, even if I'm in the same room as the server.\n>\n> Hope that helps,\n> Andrew\n>\n"}]}