Solved

if i upload a file, can server auto save a revision?

Posted on 2013-05-19
6
316 Views
Last Modified: 2013-06-08
Hi guys,
Im updating some code on a custom program i've been developing, the project is getting large and out of hand so i need to make sure anytime i make a change to a php file, that a revision is getting saved so i can revert back to a earlier copy if needed.

I typically use a php editor like editplus or rapid php, but i would be willing to change to something if it means i have to.

So basically any time i make a change to the file, id like a saved copy, is there any server-side software that does this automatically?
0
Comment
Question by:GTechForce
6 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39179815
I never heard of that.  I save all my backups on my own computer.  Don't rely on the server to be the master copy.  Too many questions here have been from people who lost their web sites because the server had a problem and they did not have a copy on their own computer.
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 39180261
While it won't automatically save, I'd recommend checking out the free plan at https://bitbucket.org and using either GIT or Mercurial. The idea is that you do some work and check in your changes. It then keeps track of all of those changes and you can roll back at any time. You can even branch your code to work on something experimental such as a new version and retain access to the launched version for bug fixes.
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 39180265
Quick follow up. With both GIT and Mercurial you'll have both a local copy of all changes and the bitbucket copy.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39180696
Maybe SVN or GitHub would be helpful.
0
 

Author Comment

by:GTechForce
ID: 39203150
Thanks, I ended up using Github and thier client.

The only thing I wish it would do is sync to our production FTP server when i sync'd to github. Anyone know a way to do this?
0
 
LVL 14

Accepted Solution

by:
quizwedge earned 500 total points
ID: 39203210
Github works, I just prefer bitbucket since it's free for private repositories.

To sync with your FTP server, you can look into Continuous Integration, such as setting up a Jenkins server. http://jenkins-ci.org/

I haven't set one up before. I've just been a user. The workflow is that you check in and push your code in Git. Your Jenkins server gets the files from Git and pushes them to your FTP server.

Your Jenkins server can do other things too such as minify code or run tests.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now