Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to host repositories on a local cloud storage?

Discussion in 'General Discussion' started by elmar1028, Mar 13, 2015.

  1. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Hey guys,

    So I've been wondering if its possible to host repositories on a local cloud storage device (like this). And also, pull/push commits to it without little hassle.

    Thanks in advance :)
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    Sure, it works fine. It is just funny the term "local" cloud. ;) but I get what you are saying. I have done it before. I find it odd that they are branding their personal servers as "cloud", but I guess the term has gotten muddied.
     
    elmar1028 likes this.
  3. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    I thought it was a suitable term. How about " Network Attached Storage " (NAS) :p

    But really though, how did you achieve this?
     
  4. DoubleNibble

    DoubleNibble

    Joined:
    Nov 15, 2012
    Posts:
    22
    I've used local servers to store various things before. To be honest, "cloud" was always just a pointless buzzword. If people continue to use the word like they do on that page, it'll start to lose its meaning too.
     
    zombiegorilla likes this.
  5. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    Indeed, cloud used to mean a multiple server/cluster/whatever so the "cloud" was an address separate or abstracted from specific physical (virtual) server, and scales or downsizes based on needs. But now, as you say, it is losing/lost its meaning. Now it means "on the internet". :rolleyes:
     
    elmar1028 likes this.
  6. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    Basically just host a GIT or SVN repo from the box. Last drive based one I did, I used one the western digital "personal" network drive (Whatever it was called before the called it cloud). It was a little base that you plugged a drive into. Which was basically a small linux box (plug server). I installed red hat + svn and ran it headless. It worked pretty well. You could probably pull the same off with raspberry pi I would imagine. (though I haven't tried).
     
    elmar1028 likes this.
  7. TylerPerry

    TylerPerry

    Joined:
    May 29, 2011
    Posts:
    5,577
    On my Synology NAS they have like an app store for it, and GIT and SVN servers are available.
     
    Ryiah and elmar1028 like this.
  8. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    That's cool! But is it possible to push/commit/pull repos from NAS using SourceTree?
     
  9. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    Haha, I've always assumed that it comes from when people draw business-level systems diagrams (ie: for managers and/or marketing people rather than technical people) and the Internet is drawn as a cloud, because you don't know the details of that part of the network, just that messages go through it. Ergo, anything stored online is in "The Cloud" because that's how it is on the diagrams.
     
    Ryiah likes this.
  10. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Anyone?
     
  11. TylerPerry

    TylerPerry

    Joined:
    May 29, 2011
    Posts:
    5,577
    I'm not home otherwise I'd checkout how it works. I think it gives you a address that's the IP address and then you put that into your GIT client (Like SourceTree) and make a repro, I'm not sure on it though as I don't use GIT. It was something like that for Subversion though.

    I'm trying a software called CloudStation that's for Synology NAS, it's kind of like a personal dropbox but it supports version history so that's cool, It can support any size file so that's good, but I'm working solo on a project. It kind of is a cloud as I'm 150km away from it and accessing my files :D
     
  12. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Hmm. I thought using cloud services like Google Drive and Dropbox can corrupt your project files.
     
  13. TylerPerry

    TylerPerry

    Joined:
    May 29, 2011
    Posts:
    5,577
    I can't see how unless multiple people are working on it at once. CloudStation is really just making a folder with the files in on the NAS, when a new version comes up it hides the old one somewhere else and uses the new one. On top of CloudStation, I also backup the current version to MS OneDrive (Automatically of course using another feature of Synology) This would also work for GIT as I'm pretty sure that's just files as well.

    I'm hoping my setup will allow me to have my NAS as the version control (even supporting things like images) and local backup so that if my computer dies I can grab it from that and if I want to use another PC i just need to log in to CloudStation, the backup to OneDrive is the fail safe that if my house is compromised then it's still available. They even support syncing two NAS together so that I could have one at my mums place just in case. But I only setup this whole CloudStation stuff last week and have had issues(deleting files on the NAS will delete them on the local machine even though they are separate) so I'm not sure it will work.