Save your script from deletion or any harddrive corruption
#1

I have seen many complaining about loosing their scripts because of many reasons. Hardware failures, "got angry and deleted it", "dog ate it" , "sister broke it" etc.


Which repisotories do you use to keep your script from any losses? Name them here, so newbies can use them for coding, sharing or backing up.

Here's what I use:

Dropbox is a cloud site which also has an API. All you do is register and download the program, drag your data to the folder and you are good.Samp server executable can run on dropbox. Most important thing about dropbox is that your script is backed up automatically when you compile. You are able to restore a backup even from a year back if you need it.

It requires internet to backup your data I think, but you don't need to have internet to access your files, you can still script if you don't have internet.

You can access your files ftom other computers if they have internet. Multiple users can access a directory at once allowing devolopers to devolope at the same time.

You are given 2GB space and It is blazing fast. Backups don't use from your space too!

I suggest everyone to use that to avoid any loss. If they want to keep their work safe from any kind of data loss.
Reply
#2

This or ****** Drive, personally I use both just to be sure.

(Paranoid Parrot)
Reply
#3

You could use Git as well with any remote repository. Offers many additional benefits, especially with bigger projects, compared to plain cloud storage.
Reply
#4

Or you could...

* upload to personal remote server
* upload to personal local server
* copy to external hard drive / Flash Drive
* Burn to CD
* Print out and tape on the walls
* Memorize all the code
Reply
#5

Quote:
Originally Posted by Y_Less
View Post
Dropbox is a general purpose file store. For code there are much better specialised solutions, called code repositories. GIT, SVN, Mercurial, Darcs, CVS. I currently use GIT because you can get a free account in GitHub but I did used to have my own private SVN server.

Advantages (with examples):
  • History - You can revert to any previous version ever:

    YSI 4.0 history

  • Logs - You write messages each time you upload the code, and those are saved to give you excellent tracking of what you've done:

    YSI commit log

  • Diffs - You can see EXACTLY what changed at any point:

    Recent YSI diff

  • Issues - People on your team (or anyone in a public repository) can list bugs:

    YSI issues

  • Online - Some clients allow you to edit things online.

  • Contribution - You can have selected people or anyone contribute easily.

  • Branches - When you are developing a new feature you can make a branch and do it there. The original version of your code is untouched so you can still use it live. When your new feature is complete you can merge the changes back in to the original - even if the original has changed (e.g. to fix bugs) in the meantime. I'm not great at branches so I don't have an example, but I do use them sometimes.

Seriously - forget Dropbox! Not only is it not designed for code, but it is closed-source and have you actually read their terms and conditions?
Correct, and drop box was listed by Edward snowmen as under NSA
I prefer Pastebin and github, or simply backup it in your pen drive if u are using it for personal use.

Why I don't like Dropbox
It start syncing my every device, photos etc. when I connect to my PC, I know there is a way to disable, but it just syncs and start uploading like someone is trying to pick pocket me

all screenshots of my screen get stored in Dropbox, when I press print screen button .
Reply
#6

Quote:
Originally Posted by Y_Less
View Post
Dropbox is a general purpose file store. For code there are much better specialised solutions, called code repositories. GIT, SVN, Mercurial, Darcs, CVS. I currently use GIT because you can get a free account in GitHub but I did used to have my own private SVN server.

Advantages (with examples):
  • History - You can revert to any previous version ever:

    YSI 4.0 history

  • Logs - You write messages each time you upload the code, and those are saved to give you excellent tracking of what you've done:

    YSI commit log

  • Diffs - You can see EXACTLY what changed at any point:

    Recent YSI diff

  • Issues - People on your team (or anyone in a public repository) can list bugs:

    YSI issues

  • Online - Some clients allow you to edit things online.

  • Contribution - You can have selected people or anyone contribute easily.

  • Branches - When you are developing a new feature you can make a branch and do it there. The original version of your code is untouched so you can still use it live. When your new feature is complete you can merge the changes back in to the original - even if the original has changed (e.g. to fix bugs) in the meantime. I'm not great at branches so I don't have an example, but I do use them sometimes.

Seriously - forget Dropbox! Not only is it not designed for code, but it is closed-source and have you actually read their terms and conditions?
What's up with their TOS? I read it very generally and could not find something wierd with it, what did I miss there?
Reply
#7

What's up with their TOS? I read it very generally and could not find something wierd with it, what did I miss there?
- Tamer T
All drop box files are just a click away by NSA
It can be leaked, sold, or just seen, all your personal details , can be used.

Better use, mega.co.nz (Non Usa website ) (50GB free storage)
Reply
#8

Just copy your data to a USB or burn to a CD.
Its better as we can get access to them without internet.
Reply
#9

i was using Dropbox for a while for group project, and no we moved to GitHub recently and gotta say it is great. much usefull and better.
However for individual project you can stick with dropbox , one reason i see it keep on updating file as you change while Github requires some clicks xD
Reply
#10

I think DropBox is too basic for those needs. I use SVN repository and it is more efficient, you can check logs for each revision, compare two revisions (for example it will tell you the differences between a version which has been commited a month ago, and the current script), and more flexibility.

As Y_Less said.
Reply
#11

I see I must change the topic concept, rather than making a promotional thread for Dropbox, I'll turn this to a cloud storage and repisotory discussion thread. Since we are also in the "Discussion" forum.
Reply
#12

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
Dropbox is a general purpose file store. For code there are much better specialised solutions, called code repositories. GIT, SVN, Mercurial, Darcs, CVS. I currently use GIT because you can get a free account in GitHub but I did used to have my own private SVN server.

Advantages (with examples):
  • History - You can revert to any previous version ever:

    YSI 4.0 history

  • Logs - You write messages each time you upload the code, and those are saved to give you excellent tracking of what you've done:

    YSI commit log

  • Diffs - You can see EXACTLY what changed at any point:

    Recent YSI diff

  • Issues - People on your team (or anyone in a public repository) can list bugs:

    YSI issues

  • Online - Some clients allow you to edit things online.

  • Contribution - You can have selected people or anyone contribute easily.

  • Branches - When you are developing a new feature you can make a branch and do it there. The original version of your code is untouched so you can still use it live. When your new feature is complete you can merge the changes back in to the original - even if the original has changed (e.g. to fix bugs) in the meantime. I'm not great at branches so I don't have an example, but I do use them sometimes.

Seriously - forget Dropbox! Not only is it not designed for code, but it is closed-source and have you actually read their terms and conditions?
You clearly outlined the many benefits of source code management systems compared to normal cloud file storage, and I tend use Git for exactly those reasons.

One thing I'd like, however, to comment on is that you mentioned that Dropbox is closed source. Isn't GitHub as well? If you're concerned about the safety and privacy of your source code, using your own server to host the repository on would be safer.

But don't get me wrong. Like you said, GitHub does have its benefits, especially if the project in question is open source. It makes it easy for others to contribute and browse the source code, while offering nifty features such as the wiki and ability to distribute binaries, to list a few.
Reply
#13

GitHub is closed-source AFAIK, but they are just one client using Git that you can share your code with. Git itself, the underlying tool, is open-source and maintained by Linus Torvalds, the creator of Linux.
Reply
#14

I personally use https://www.assembla.com/ as it has both svn and git. Plus free private repositories which unfortunately github doesn't provide.
Reply
#15

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
GitHub is closed-source AFAIK, but they are just one client using Git that you can share your code with. Git itself, the underlying tool, is open-source and maintained by Linus Torvalds, the creator of Linux.
Oh, this is something I don't know. Nice to see the person who is maintaining Git Hub.

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
I personally use https://www.assembla.com/ as it has both svn and git. Plus free private repositories which unfortunately github doesn't provide.
This. I'd always use Assembla as they've private repository for free and Git Hub provides them for monthly charges. But, if you are a student, or a teacher, and you need something to write up your code privately for educational purpose. Then go a head to: https://education.github.com
Reply
#16

Quote:
Originally Posted by Arjanz
Посмотреть сообщение
Correct, and drop box was listed by Edward snowmen as under NSA
"Edward snowmen" - You made my morning sir, thank you!

Anyway, Y_Less pretty much sums the best solution up.

GitHub is great for open source stuff, all my gamemodes, libraries etc are open source and I have tons (really should release them)

However, I've come across some annoyances with Git involving branches and "detached head" errors. Watch out when working with branches, if you make a change to the same file on two branches at a time, you can't merge them and if you try it actually screws things up a bit (or maybe that was a bug). If you ever get into that situation, merge them manually!

Other than that, Git and GitHub are really useful for issue tracking, idea brainstorming (you can comment on individual lines) and sharing specific snippets (you can select a particular line or lines and link it)

Issues can be labeled and you can customise the labels with names/colours. I have a neat set here that I use to categorise issues:


Pull requests are handy, if a friend finds a bug and fixes it, they can write the code and submit a "Pull Request" then I can accept that code and merge it to the main branch without even needing to be at my working machine, it's all done through the web interface.


Aside from GitHub, Assembla offers public repositories with SVN as well as Git (it's handy to learn the ins and outs of both systems) or, if you have a spare machine you can install your own VCS on there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)