+ 38

As a future / current web developer what is your best practice to backup your source code and or websites ?

As you know from using this app it comes and goes ~ sometimes it is completely offline ~ down for maintenance ~ or other issues happen which is extensive. In the real world / professional arena you may be working on 50 to 100s of projects and dealing with real world issues, including those who have ill intent... If you are a current professional developer please elaborate to teach the future web developers... I know I have spent hours working on a web page only to have the website go down in the middle of my project loosing the page I was creating... Just as one example... repository and or cloud services

28th Nov 2018, 12:48 AM
BroFar
BroFar - avatar
42 Réponses
+ 26
I use Github for my public projects and Bitbucket for private ones. It's simple and useful. Github or Bitbucket are very useful if you don't want to loose your projects. It is better to keep them in remote repositories. These web services also help you to cooperate with your team.
28th Nov 2018, 2:57 PM
Igor Makarsky
Igor Makarsky - avatar
+ 19
Use version control systems. It's the best way to keep track if your work, split separate branches for production and development, and work and coordinate work of multiple developers. In practical terms almost everyone today uses git. Back it up on one of the cloud git services. If you're a freelancer working alone, I suggest bitbucket.org as it allows you to host private repositories for free (I think up to 5 people can access the same private repository). Edit: Since my original answer, github.com has began offering free private repos as well.
28th Nov 2018, 5:17 AM
Udi Finkelstein
Udi Finkelstein - avatar
+ 14
CATEGORY 1: SINGLE FILE CODES Simplest and fun cloud based storage is sololearn. Then for web front end codes, codepen, Jsfiddle, (very handy to share and save snippets). You can find an editor with save feature for any language. Github gists are also super handy and can be embedded CATEGORY 2: Multiple file (simple projects) Sites like Stackblitz that provide IDE like experience and save feature for JS Framework based projects. CATEGORY 3: Repository based (actual projects are saved here) Supports version control, bug tracking, collaboration with others (pull requests), project wiki, documentation. Git/svn support Most popular GitHub, my favorite is Gitlab, want private free repos then use bitbucket, can also use popular cloud platform based repository services. Heroku(Paas platform) has its own heroku git repositories, GCP, Azure and AWS should also have their own. Ton of options, it's all about how configurable it is and how good it fits with different platforms.
29th Nov 2018, 5:51 PM
Morpheus
Morpheus - avatar
+ 13
BroFarOps©®️™️ My dog ​​ate the paper on which one of my codes was written. I have not seen better protection yet.
29th Nov 2018, 8:48 PM
Dmitriy
Dmitriy - avatar
+ 9
Where GitHub offers free public repositories, GitLab offers free private repositories. That being said, if you only use the web UI, GitLab will grate on nerves more easily and more often than GitHub. TLDR: Some form of Git.
28th Nov 2018, 5:30 AM
Janning⭐
Janning⭐ - avatar
+ 8
Very strong answer r f Well said... There are of course the cyber security complexities to consider but I like the localized workstation with the pm central doc station... Something that some say they have and or offer on the premium care package(s) and so on...
29th Nov 2018, 7:28 PM
BroFar
BroFar - avatar
+ 6
Wow, yeah, that thread went just about everywhere! 😅 The open source thing seems to be a bit of a straw man. Adam Smith was a big red herring. I had totally forgot about Skype (RIP). One of my close friends used to live with a guy who worked for the acquisitions department at Microsoft. I did not get the impression that he cared about doing good, doing evil, becoming domineering, espousing high ideals, etc. -- just doing smart (like pitching to a completely dispassionate VC or the kind of decision-making an average person would engage in while grocery shopping). To bring things back on track... I did think the conversation about taking the Git concept to the next level (not just distributed repos but also decentralized) was a good conversation to have, though a tough one. I've been pushing up against that idea in my work lately and we know it needs to be addressed more directly in the future, but there are lower hanging fruit at the moment. Wait-and-see "strategy". 😋
28th Nov 2018, 7:54 AM
Janning⭐
Janning⭐ - avatar
+ 6
Igor Makarsky can you explain to these future developers the importance of backing their projects up based on your own experiences.
28th Nov 2018, 3:08 PM
BroFar
BroFar - avatar
+ 6
I'm surprised no one has mentioned one of the most useful tools of Github is pull requests. Hands down, a must have feature for agile teams.
29th Nov 2018, 5:24 PM
David Carroll
David Carroll - avatar
+ 5
Nice question! I want to hear what others thinks about it!
28th Nov 2018, 1:57 AM
JTLZ
+ 5
BroFarOps©®️™️ I think we all had a moment of panic there when that was announced. 😊 I think the danger is having GitHub fall into MS's tendency toward slow/inefficient/bloated code (and maybe that there is -- or we will find -- something in the fine print where MS owns all your code). On the brighter side, MS takes privacy/security more seriously than Facebook, Amazon, Netflix, and Google. (I think Apple is on par with MS in this regard, so I excluded them.) I'm not getting my hopes up on improvements arising from MS being positioned to throw more resources at adding functionality or improving existing functionality. If they only maintain GitHub and just focus on not breaking it, I'd probably still use GitHub for quite some time. I'm not sure that there are competitive alternatives yet, but I'm always open to and looking for something to surpass GitHub. 🙂 My opinion. 😋
28th Nov 2018, 5:53 AM
Janning⭐
Janning⭐ - avatar
+ 5
BroFarOps©®️™️ Wait... what? I know that Microsoft acquired LinkedIn. However, I'm not sure why you listed Salesforce, Hootsuite, and MailChimp. As far as I know, those are still their own companies. Did I miss something? Regarding your question, I'd add that beyond source control, a good continuous integration and continous deployment solution to automatically push code from Github to staging, then to production will eliminate scenarios involving code changes in live servers. Also, you can use Puppet scripts to automate VM server builds and Docker containers for deploying microservices. Other disaster recovery options include periodic VM snapshots and automated database backups.
28th Nov 2018, 7:38 AM
David Carroll
David Carroll - avatar
+ 5
I don't wanted share this but . I actually want to help others My practice is seeing others source code and make it changes and changes over time Sometimes I see some unknown parts / core of a web I try to Search on search engines to get more results
28th Nov 2018, 9:58 AM
Charan Leo25
Charan Leo25 - avatar
+ 5
Nice answer Morpheus And if I didn't say it loud enough congratz ~ Tremendous work in the past year and now working in the big leagues 👍
29th Nov 2018, 5:59 PM
BroFar
BroFar - avatar
+ 5
Disaster recovery, buisness continuity and backup strategies are apart of every enterprise enviornment. (data protection) Zerto, SAN Replication, VMware Replication, S3 buckets with multi-region storage policies, Veeam, Backup exec, Cohesity, database backup schdules, etc, etc can all be useful tools depending on the enviornment and business requirements. from a code/version control persepctive, git is what ur looking for. There are many variables at play when it comes to up time on the web. The best backup and version control strategies in the world wont ensure uptime. Only Solid design, implementation, and maintenance Layer 1 - Layer 7 will keep that 99.99999% uptime dream a reality.
30th Nov 2018, 8:21 AM
Linus Gates
Linus Gates - avatar
+ 5
LOL... Janning⭐ I actually owned a tech startup back in 2007 to 2012 and spent a sizable investment on hardware for failover and for load balancing in our single data center location. Adding failover to a different region for a tech startup was a like building an underground bunker for my family in case of nuclear fallout. It just wasn't going to happen anytime soon. 😅 All we could do was pray nothing catastrophic to occur until we could eventually expand to regional failover.
30th Nov 2018, 2:45 PM
David Carroll
David Carroll - avatar
+ 4
Ya ~ I see what they did / have done elsewhere including SaleForce, LinkedIn, and Hootsuite , and Mailchimp.... Janning⭐ and it does through some real concerns IMO
28th Nov 2018, 5:58 AM
BroFar
BroFar - avatar
+ 4
I use GitHub, Currently i have 1 public one.
28th Nov 2018, 5:43 PM
Potato Hacker
Potato Hacker - avatar
+ 4
David Carroll i was hoping you would really jump in here with your vast experience ~ mind elaborating
29th Nov 2018, 5:31 PM
BroFar
BroFar - avatar
+ 4
Failover can be a difficult task to facilitate. Just like it take a village to raise a child. - It takes a team to create a solid enterprise infrastructure. (Network, Compute, Storage, Virtualization, Cloud, Code(Web, DB, App), and Edge -- If 1 slips, they all fall.) Its a beautiful thing when it all comes together tho. Makes my heart beat fast just thinking about it.
30th Nov 2018, 4:09 PM
Linus Gates
Linus Gates - avatar